提交 3ef3e17a 编写于 作者: V vit9696

OcBootManagementLib: Fixed CLANGPDB builds by shortening OC magic

上级 e15e2d30
......@@ -9,6 +9,7 @@ OpenCore Changelog
- Increased default APFS `MinDate` and `MinVersion` to macOS Big Sur for better security
- Updated builtin firmware versions for SMBIOS and the rest
- Improved SSDT-PNLF compatibility with Windows and newer graphics
- Fixed CLANGPDB OpenCore builds by shortening OC magic
#### v0.7.1
- Added `SyncTableIds` quirk to sync modified table OEM identifiers
......
......@@ -215,13 +215,13 @@ IsOpenCoreBootloader (
0x0E, 0x1F, 0xBA, 0x10, 0x00, 0xB4, 0x09, 0xCD, 0x21, 0xB8, 0x01, 0x4C, 0xCD, 0x21, 0x0F, 0x0B,
0x4F, 0x70, 0x65, 0x6E, 0x43, 0x6F, 0x72, 0x65, 0x20, 0x42, 0x6F, 0x6F, 0x74, 0x6C, 0x6F, 0x61,
0x64, 0x65, 0x72, 0x20, 0x28, 0x63, 0x29, 0x20, 0x41, 0x63, 0x69, 0x64, 0x61, 0x6E, 0x74, 0x68,
0x65, 0x72, 0x61, 0x20, 0x52, 0x65, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x0D, 0x0A, 0x24, 0x00
0x65, 0x72, 0x61
};
EFI_STATUS Status;
EFI_FILE_PROTOCOL *File;
UINT8 FileReadMagic[sizeof (OpenCoreMagic)];
UINT8 FileReadMagic[0x40];
Status = OcOpenFileByDevicePath (
&DevicePath,
......
......@@ -115,7 +115,7 @@ package() {
)
for efiOCBM in "${efiOCBMs[@]}"; do
dd if="${bootsig}" \
of="${arch}/${efiOCBM}" seek=64 bs=1 count=64 conv=notrunc || exit 1
of="${arch}/${efiOCBM}" seek=64 bs=1 count=56 conv=notrunc || exit 1
done
# copy OpenCore main program.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册