Following commit cd2318129 (OcQuirks into config.plist)

This commit is contained in:
vectorsigma72 2020-07-16 21:13:35 +02:00
parent 60901993b4
commit fe4e308c46
3 changed files with 0 additions and 25 deletions

View File

@ -420,18 +420,6 @@ final class Installer: NSObject {
log: true) {
exit("Error: cannot copy '\(dpath)' to destination.")
}
if dpath.lastPath == "OcQuirks.efi" {
let quirkPlistSrc = dpath.deletingLastPath.addPath("OcQuirks.plist")
let quirkPlistDest = UEFIdest.addPath("OcQuirks.plist")
if !fm.fileExists(atPath: quirkPlistDest) && fm.fileExists(atPath: quirkPlistSrc) {
if !copyReplace(src: quirkPlistSrc,
dst: quirkPlistDest,
attr: attributes,
log: true) {
exit("Error: cannot copy '\(quirkPlistSrc)' to destination.")
}
}
}
}
}

View File

@ -19,15 +19,6 @@ driver_dir="@DRIVER_DIR@"
driver_name="@DRIVER_NAME@"
if [[ -d "$EFI_ROOT_DIR/EFI/CLOVER/drivers/$driver_dir" ]]; then
if [[ "$driver" == OcQuirks.efi ]]; then
# copy OcQuirks.plist if doesn't exist
if [[ ! -f "$EFI_ROOT_DIR/EFI/CLOVER/drivers/$driver_dir/OcQuirks.plist" ]]; then
if [[ -f ./OcQuirks.plist ]]; then
cp -R ./OcQuirks.plist "$EFI_ROOT_DIR/EFI/CLOVER/drivers/$driver_dir"/
fi
fi
fi
cd "$EFI_ROOT_DIR/EFI/CLOVER/drivers/$driver_dir"
if [[ "$driver" == OcQuirks.efi ]]; then
for driver in *.efi

View File

@ -1170,10 +1170,6 @@ if [[ -d "${SRCROOT}/CloverV2/EFI/CLOVER/drivers/$DRIVERS_OFF/$DRIVERS_UEFI/Memo
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${driverName}" \
--subst="INSTALLER_CHOICE=$packageRefId" MarkChoice
if [[ "$driver" == OcQuirks.efi ]]; then
cp -R "${SRCROOT}/CloverV2/EFI/CLOVER/drivers/$DRIVERS_OFF/$DRIVERS_UEFI/MemoryFix/OcQuirks.plist" \
"${PKG_BUILD_DIR}/${driverName}"/Scripts/
fi
buildpackage "$packageRefId" "${driverName}" "${PKG_BUILD_DIR}/${driverName}" "${driverDestDir}"
addChoice --group="MemoryFix64UEFI" --title="$driverName" \
--start-selected="choicePreviouslySelected('$packageRefId')" \