Commit Graph

1247 Commits

Author SHA1 Message Date
jief666
51d5d4a141 Fix compilation Xcode 12.5.
Debug message in Smbios.cpp.
2021-04-28 21:00:28 +03:00
SergeySlice
5bc175a753 accept commit 4bf2a5b from Tianocore
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-26 19:57:04 +03:00
jief666
afa09ccb4e OpenCorePkg new commit. 2021-04-23 17:54:59 +03:00
jief666
4e28b79449 Fixed refit.inf. 2021-04-23 17:07:38 +03:00
jief666
cc3c8fe0a7 Fix bug : it was ignoring legacy with PBR, MBR and CD.
Uncomment eComStation, BeOS, ZETA and Haiku legacy boot sector
detection.
Return unknown icon instead of dummy.
Improve legacy entries title when _LoaderTitle is empty.
Create log_technical_bug(). Temporary redirected to panic.
Hardened egLoadFile().
Hardened SelfOem.
Copy ctor in XStringArray.
Improve qemu launch scripts.
2021-04-23 15:20:48 +03:00
SergeySlice
caa636eb6d supported RX6800XT in 11.4
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-22 06:07:46 +03:00
jief666
a1a27d29a1 Improve some messages.
unicode_conversions version.
2021-04-21 08:32:38 +03:00
SergeySlice
deeea43b79 dont double CPU examine
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-17 14:32:32 +03:00
jief666
541762427a Real fix to XCode optimization bug. 2021-04-16 12:55:51 +03:00
jief666
e7bb2bd3bd Test to see if it could be a compiler bug. 2021-04-16 00:16:41 +03:00
SergeySlice
ea21418467 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2021-04-15 21:43:41 +03:00
SergeySlice
917760ba82 some comments
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-15 21:22:14 +03:00
jief666
0b1fe3aade Is this a clang bug ? 2021-04-15 20:47:36 +03:00
SergeySlice
9bff704ea7 error format string
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-13 22:27:34 +03:00
SergeySlice
ef68d47d67 one more case
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-13 19:21:38 +03:00
SergeySlice
fb9562496e use 8 bytes for PBr
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-13 18:27:19 +03:00
jief666
66bbace4f7 Looks like one added log line fixed the xcode build!!! There must be a
better explanation... An optimization compiler bug ?
2021-04-13 01:01:43 +03:00
jief666
c07c1542e8 Create XBuffer setSize(IntegralType size, const T& elementToCopy). 2021-04-12 15:13:14 +03:00
jief666
23b39364d2 Fix a wrong cast in XImage.
Fix bug about padding StartMask, MaskFind, Replace, MaskReplace
Move IgPlatform in GlobalConfig.
Improve panic message.
Fix bug in XMLDecode.
2021-04-12 15:11:01 +03:00
SergeySlice
1d6a7ae9d3 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2021-04-11 13:53:39 +03:00
SergeySlice
4904c3dc8e default Tmezone is FF, not -1
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-11 13:53:21 +03:00
jief666
fe26ba998a Forgotten file. 2021-04-11 09:37:01 +03:00
jief666
7babc6fe9b Do not use OC quirks struct anymore in settings.
Fix Disabled property in Smbios/Block config.
Move flagstate in GlobalConfig.
Remove gSettings.Smbios.REV, ECPI, RBr and RPlt.
Create getRBr() and getRPlt().
Operator == and isEqual in XArray, XObjArray, SETTINGS_DATA.
Rename equal to isEqual in XString and XStringArray.
Operator == in INPUT_ITEM, undefinable, ABSTRACT_PATCH (and derived) and
RAM_SLOT_INFO class.
Clean b64cdecode.h.
2021-04-11 08:18:52 +03:00
jief666
ff4e97edde Forgotten file. 2021-04-08 18:52:48 +03:00
jief666
975ac8f4fb Implement the possibility to cache XString size. Not activated.
Improve unicode_conversions.
Move strlen declaration to string.h.
2021-04-08 18:07:05 +03:00
jief666
277f3e8619 Speed up devprop_generate_string by using a XBuffer instead of a String.
Create a S8Catf in XBuffer.
2021-04-08 11:01:20 +03:00
jief666
c11a90046a Create GetFwFeatures(), GetMobile() and GetPlatformFeature in
PlatformData.
Create panic_ask for future possibility of toogle panic on and off.
2021-04-07 00:45:58 +03:00
jief666
2cf69b2b55 Rename ABSTRACT_PATCH Data & Patch, Find and Replace.
Create GetChassisTypeFromModel() and GetFwFeaturesMaskFromModel().
Ignore first '\' in ForceKextsToLoad.
XString : Add a parameter to wc_str to access address of nth chars.
XString : Add endWithOrEqualToIC.
Create ConstXStringArray.
2021-04-06 16:39:55 +03:00
jief666
5d20632984 Move ctors symbol in its own section to force alignment.
Add -g3 flag for release compilation.
2021-04-05 23:35:34 +03:00
jief666
6545450f02 Ignore empty if device property value is empty.
Ignore commented device properties in FillDevicePropertiesOld.
Rename Name to acpiName.
2021-04-05 15:00:17 +03:00
jief666
946a6428b5 Remove the trim to the first space for PartNo, Vendor, SerialNo.
Refactor ACPI_NAME_LIST as XString8Array.
Create ACPI_RENAME_DEVICE and ACPI_NAME to replace ACPI_NAME_LIST.
Change RAM_SLOT_INFO and MEM_STRUCTURE into class.
Improve XObjArray::RemoveWithoutFreeingAtIndex.
Create XStringArray::ExtractFromPos.
Move CheckFatalError and CheckError to BasicIO.
2021-04-05 11:57:55 +03:00
jief666
6ff5bab8a5 Create section Smbios and BootGraphics.
Move OptionsBits and FlagsBits in GlobalConfig.
Move OEMVendor, OEMProduct, OEMBoard in GlobalConfig.
Move KernelPatchesAllowed, KextPatchesAllowed, EnabledCores and
BlockKexts in GlobalConfig.
Create RomVersionUsed, EfiVersionUsed and ReleaseDateUsed in
GlobalConfig.
Move gFwFeatures, gFwFeaturesMask, gPlatformFeature, SlotDevices in
Smbios section.
Move UserInUse, UserChannels and User from gRAM to Smbios settings
section.
Rename enum LANGUAGES to LanguageCode.
2021-04-03 17:42:49 +03:00
jief666
d54fc63747 new folder PosixCompilation. Ressources to compile Clover as a mac
application, for unit tests.
2021-04-03 13:55:25 +03:00
jief666
96909661a0 Fix "ROM" parameter not read soon enough. 2021-04-02 10:46:23 +03:00
jief666
69a47c5fac Create Properties, Arbitrary and AddProperties menu.
hex2bin returns the length when passing NULL for out parameter instead
of 0.
Buildid in OEMString for my own build.
Create TagTypes.h.
Rename AddProperties to AddPropertiesArray.
devprop_generate_string now returns a XString8.
Add cpy method in XBuffer.
Add strsicpy in XString.
2021-04-01 11:06:53 +03:00
jief666
a5494a89f6 Create SETTINGS_DATA Devices section.
Convert AddProperties to XObjArray<DEV_ADDPROPERTY>.
2021-03-29 11:50:02 +03:00
jief666
773f9bdaf7 Separate ATI and NVIDIA card list.
Move MMIOWhiteList, ocBooterQuirks and QuirksMask in Quirks.
Remove MaxSlide as it already exist in ocBooterQuirks as
ProvideMaxSlide.
2021-03-28 23:13:43 +03:00
SergeySlice
072a0a5d26 DebugMode is not same for DBG()
check AudioList is empty

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-03-28 17:02:56 +03:00
jief666
6d37682c03 Create a disabled boolean in RT_VARIABLES (BlockRtVariableArray
element).
Create nullGuidAsString and EFI_GUID nullGuid.
Rename VarGuid to Guid in RT_VARIABLES.
2021-03-28 12:12:43 +03:00
SergeySlice
0035ed3c06 got updates for nanosvg from original project
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-03-28 10:58:19 +03:00
jief666
dc17de7af3 Remove bad include. 2021-03-28 08:57:15 +03:00
jief666
04e288d53b Fix KPKernelPm KPAppleIntelCPUPM.
Fix bad "dead installer" detection.
Exclude a DisableDriversArray string if it's empty.
Rename back PatchVBiosBytesNew to PatchVBiosBytes.
Rename ConfigPlist to ConfigPlistClass.
Minor other renames to clean settings.h.
2021-03-27 21:53:30 +03:00
SergeySlice
ea0c6838f0 merge conflicts
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-03-26 22:15:21 +03:00
jief666
4a3bc612b8 Create settings section Graphics, RtVariables.
Mobe Turbo in GlobalConfig.
2021-03-26 12:43:15 +03:00
jief666
fba7032c06 Fix previous fix !
Fix some downcast warnings.
Fix menu appearing in text mode.
2021-03-26 08:32:26 +03:00
SergeySlice
94340676ea Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2021-03-26 05:59:19 +03:00
SergeySlice
5bd8c21a6d add new files in proj
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-03-26 05:59:11 +03:00
jief666
3b542ca711 Fix crash when sub menu has no entries. 2021-03-26 00:15:15 +03:00
jief666
3252bf63e0 Rename to Language.
Create DSDT_Patch.Disabled.
2021-03-25 23:21:41 +03:00
jief666
65f8cc122d Created ABSTRACT_PATCH.
Renamed ForceKexts to ForceKextsToLoad.
Create a copy KPKernelPm, KPAppleIntelCPUPM as they can be modified by
NeedPMfix.
Delete gRemapSmBiosIsRequire, duplicate of Patches->KPDELLSMBIOS
Slight refactor of hex2bin and XMLDecode.
Memory leak in XBuffer.stealValueFrom().
Create XString.strsicat() and stealValueFrom with a size parameter.
2021-03-25 17:32:56 +03:00
jief666
59552d4e63 Remove loadOptions "Prefix" for custom tools. 2021-03-24 00:23:44 +03:00
jief666
ac7bd4308d Refactoring CutomLegacyEntries and CustomToolsEntries.
Refactor ACPIPatchedAML as a XObjArray<ACPI_PATCHED_AML>.
move Codepage in GlobalConfig.
2021-03-23 22:59:30 +03:00
jief666
ff4c90bc99 Finish refactoring of custom entries settings. 2021-03-23 11:32:57 +03:00
jief666
8ccbf5780a Remove first load option for non-osx boot. 2021-03-22 21:02:19 +03:00
jief666
829fd040dc Create REFIT_MAINMENU_SCREEN class
Create CUSTOM_LOADER_SUBENTRY_SETTINGS, CUSTOM_LOADER_SUBENTRY_SETTINGS
and CUSTOM_LOADER_SUBENTRY.
Clean the sub entries config.plist fields.
Comment unused KernelAndKextPatcherInit, KernelAndKextsPatcherStart,
CheckForFakeSMC
Comment unused OSFLAG_WITHKEXTS and OSFLAG_CHECKFAKESMC
2021-03-22 15:40:01 +03:00
SergeySlice
c93da72714 move self initialisation up
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-03-21 17:08:47 +03:00
jief666
37a4b86a21 Fix custom entries not generated. 2021-03-20 22:22:38 +03:00
jief666
11ca2c36c6 Adapt compiler options for compilation as a macOs app.
Rename CustomBoot to CustomLogoType, CustomLogo to CustomLogoImage.
2021-03-20 17:29:34 +03:00
jief666
2a029bd298 SETTINGS_DATA refactoring. 2021-03-19 23:32:42 +03:00
jief666
0098f0b1ee Forgotten file. 2021-03-19 21:37:24 +03:00
jief666
d33d0479fa Continuing refactoring SETTINGS_DATA. 2021-03-19 18:35:01 +03:00
jief666
60e9707d0e move SetTable132 in GlobalConfig.
Fix in GenFw.
2021-03-19 16:04:19 +03:00
jief666
c698bfb932 Fix crash when no OpenRuntime.efi. 2021-03-19 10:41:24 +03:00
jief666
4e3a18b2dd Fix duplicated GCC compiler option. 2021-03-19 10:36:26 +03:00
jief666
fc457c41bb Disable not yet compilable sources. 2021-03-15 16:29:08 +03:00
jief666
3fb08d97f8 Continuation of refactor of settings. 2021-03-15 12:02:34 +03:00
SergeySlice
235f13a3db fix bootlog crash at legacy boot
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-03-06 08:07:06 +03:00
SergeySlice
45801ef2da correct use of virtual pointer
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-28 22:42:57 +03:00
SergeySlice
0dc0a93045 BigSur is not X, it is eleven
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-27 09:31:06 +03:00
SergeySlice
949da631b9 search nvram.plist only on ESP partitions
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-21 18:30:06 +03:00
SergeySlice
76bf6321a6 release compilation should never panic on bad user input, use DEBUG for testing
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-21 16:49:09 +03:00
SergeySlice
f17e66cf8b print nvram values into log
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-21 09:57:43 +03:00
SergeySlice
3b1f57ba86 RenameDevices can be an array
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-21 08:48:07 +03:00
SergeySlice
e1a49a85b9 repair RenameDevices
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-20 21:33:09 +03:00
SergeySlice
b13a1e5112 remove unused variable
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-20 19:32:23 +03:00
SergeySlice
3fbfaf07eb fix nvram.plist reading
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-19 23:07:24 +03:00
SergeySlice
93196411ad change defaults for SSDT generation because it is done before
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-11 22:27:03 +03:00
jief666
8209394af9 Continuing to refactor SETTINGS_DATA. 2021-02-11 14:41:59 +03:00
jief666
95be95c531 Reactivate warnings.
Clean warnings reactivated.
Clean build flags in the 4 configurations to make RELEASE_XCODE8 works
in QEMU.
2021-02-10 15:32:07 +03:00
jief666
b346d25c32 Align and clean GCC and Xcode build flags.
Removed some warnings.
2021-02-09 14:50:23 +03:00
SergeySlice
05dd5ca7ce add missing files
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-07 18:56:01 +03:00
SergeySlice
8931904dab unused variable if not debug
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-07 18:10:01 +03:00
SergeySlice
09d1ee044f Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2021-02-07 17:59:23 +03:00
SergeySlice
5d75cb7c69 embedded DataHubDxe and default for ARTFrequency
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-07 17:59:15 +03:00
jief666
534c5e3397 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2021-02-07 17:39:55 +03:00
jief666
75097bd304 Remove include <Platform.h> from headers. Keep them in sources. 2021-02-07 17:39:03 +03:00
SergeySlice
d5f0ca741c add platform features for new models
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-07 09:26:40 +03:00
jief666
7b4edb280c Fix version number unknown. 2021-02-07 09:15:09 +03:00
jief666
1a02f530db Refactoring to allow Clover to be compiled as a macOs app. 2021-02-06 20:16:46 +03:00
SergeySlice
4bb8bb493f accept issue 356, VoodooRMI ordering
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-06 19:34:31 +03:00
SergeySlice
a17071034c take into account tiger lake
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-06 19:18:48 +03:00
SergeySlice
e24ceaa470 set default settings must follow get cpu properties
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-05 22:17:48 +03:00
jief666
333b6ce1ca Hide dead installer prebooter.
Do not hide installer if there is a main partition.
2021-02-04 17:04:31 +03:00
SergeySlice
3142593e38 update model data
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-03 21:04:33 +03:00
SergeySlice
0a2e29d47d fix a misprint with ProtecSecureBoot
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-02 21:06:35 +03:00
jief666
fa0bdcd181 Starting to refactor settings. 2021-02-02 12:02:21 +03:00
jief666
16c627596f Rename OSVersion to macOSVersion.
Fixed some icons ordering in main menu.
Fixed macOs version detection for custom entries.
Fixed main Big Sur partition appearing in menu.
Refactor IsValidGuidAsciiString.
2021-01-31 12:50:23 +03:00
SergeySlice
5de09acb3f correct config-plist
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-01-27 19:49:58 +03:00
jief666
b5e0562a3b DMG boot support through OC. 2021-01-22 11:35:57 +03:00
SergeySlice
ee5e05cc14 dontuse legacy plugintype
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-01-18 20:02:51 +03:00
SergeySlice
a9778cd8d9 text formatting and project ordering
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-01-06 11:51:02 +03:00
SergeySlice
f5ae33896c fix capitalization of SMC
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-12-21 20:59:04 +03:00
SergeySlice
2eb79d33a5 correct comment
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-12-20 08:50:31 +03:00
SergeySlice
0f12a7e424 add model MBP16,4
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-12-19 21:00:37 +03:00
SergeySlice
b1aaed5567 fix previous commit
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-12-15 20:03:49 +03:00
SergeySlice
d68d53a416 can use <data> when <integer> asked
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-12-14 22:46:00 +03:00
SergeySlice
7327d95aba adding data for iMac20
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-12-13 11:51:50 +03:00
SergeySlice
349e56a68a take into account custom entry may point to apfs partition
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-12-01 22:09:30 +03:00
SergeySlice
dc4a2617ff Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-11-28 20:30:38 +03:00
SergeySlice
8649fc7631 fix errors
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-11-28 20:30:26 +03:00
jief666
a73d7d6d79 kext order for BrcmFirmwareData, BrcmPatchRAM2, BrcmPatchRAM3. 2020-11-28 20:26:45 +03:00
SergeySlice
830cc59ae8 use one recovery entry
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-11-28 18:08:18 +03:00
SergeySlice
357e8cf39e find recovery for bigsur
not working yet

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-11-28 16:48:31 +03:00
SergeySlice
e08a686e13 account all 11.x.y system will be BigSur
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-11-26 21:42:33 +03:00
jief666
c9cfc183d9 Keep "Bootx64" for debug log name if booted on /EFI/Boot/BootX64.efi 2020-11-24 16:14:48 +03:00
jief666
8a561576cd Add IC when checking drivers name at loading. 2020-11-24 16:01:32 +03:00
jief666
2f90c9702a debug.log name contains efi file name and timestamp. 2020-11-24 15:41:47 +03:00
SergeySlice
569a2fbe94 set log position
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-11-22 14:32:03 +03:00
jief666
f28e8a2244 Fix DellSmbiosPatch. 2020-11-19 00:49:02 +03:00
jief666
2cdab656af Update refit.inf to remove warning. 2020-11-13 18:15:46 +03:00
jief666
7f1b87c92f Create object MacOsVersion. 2020-11-13 00:25:56 +03:00
SergeySlice
03d017279b Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-11-09 20:02:29 +03:00
SergeySlice
fd93022f92 exclude newyer theme
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-11-09 19:56:18 +03:00
jief666
b6a13a9f53 Fix GenFW, remove -no-lto for CppMemLib. 2020-11-09 16:19:33 +03:00
SergeySlice
30f4fd2d64 recheck DSDT length
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-11-06 10:31:30 +03:00
jief666
5d91bbe253 Restore USBFixOwnership feature. 2020-11-05 09:29:56 +03:00
jief666
e314f72e59 MSVC compilation (forgotten in last commit). 2020-11-02 23:26:41 +03:00
jief666
dcfa6bb6a2 MSVC compilation (forgotten in last commit). 2020-11-02 22:36:36 +03:00
Jief L
da8ad5c0eb MSVC compilation. 2020-11-02 16:45:11 +03:00
jief666
9e7b4311cb Make gcc10 thinks it should keep gBuildIdGrepTag symbol. 2020-10-28 20:11:50 +03:00
jief666
a23e29cc65 ebuild.sh, add include in refit.inf 2020-10-28 14:24:30 +03:00
SergeySlice
d0388ee7a7 define defaults when gruop is absent
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-27 21:51:28 +03:00
jief666
5a46bf363f Fix Quirks menu value not taken into account. 2020-10-27 09:12:37 +03:00
jief666
fafc50e3d0 Fix partition name when there is more than 1 system partition in
container.
printf support of "%.*s".
2020-10-26 23:37:32 +03:00
jief666
c458db4acd Typo 2020-10-26 18:02:54 +03:00
jief666
d540f76b54 Handle Skip in patches. 2020-10-23 21:52:01 +03:00
SergeySlice
fc3fa0de26 reduce debug.log
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-23 21:48:31 +03:00
jief666
109746ca82 Re-implement ordering partition with a no-loop guard.
selfOem.unInitialize()
2020-10-23 09:04:01 +03:00
jief666
6a96d48330 Better name for Preboot.
Ordering of Preboot Main Recovery
2020-10-22 16:55:30 +03:00
jief666
bef59ccfa2 Fix icons being light at the first display. 2020-10-22 14:33:57 +03:00
jief666
18038055ab Put back "Allow 11 11.x in IsOSValid()". 2020-10-21 17:20:59 +03:00
jief666
982a43f3e3 Avoid having main BS partition in Menu. 2020-10-21 00:33:02 +03:00
jief666
d4afee825b Keep path independant symbol. 2020-10-20 22:50:30 +03:00
jief666
d17d02b1f8 Clean [BuildOptions] in inf files.
Add "-flto  -DUSING_LTO" when DISABLE_LTO is not defined.
2020-10-20 15:00:24 +03:00
jief666
e80852a82f Allow 11 11.x in IsOSValid().
No timing in JIEF_DEBUG.
2020-10-20 10:55:46 +03:00
jief666
2d124e41e3 Improve GetDebugLogFile() and SaveMessageToDebugLogFile(). 2020-10-19 15:04:03 +03:00
jief666
7ac3952a92 Add \ before Clover path if it's missing, instead of Panic. 2020-10-18 16:54:55 +03:00
SergeySlice
259ebbbf08 make path_independant used
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-18 06:04:08 +03:00
SergeySlice
a34840baa1 special order for voodooi2c
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-18 05:43:25 +03:00
jief666
70988228c4 Refactor selfOem. Created getConfigDir... methods.
Enclose access to getOemDir... by if (selfOem.oemDirExists()).
Enclose access to getKextsDir... by if (selfOem.isKextsDirFound()).
closeDebugLog() in UninitRefitLib().
Prevent DBG loop.
2020-10-17 16:01:33 +03:00
SergeySlice
11e2e38420 several optimisations
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-15 10:05:37 +03:00
SergeySlice
48fb8c7575 always boot with injexted kexts, just choose them
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-14 22:06:41 +03:00
SergeySlice
92bf401d7c fix full path for kexts
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-14 21:54:18 +03:00
SergeySlice
22f694d2da search info and exec pathes
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-14 19:08:32 +03:00
jief666
1bb8b0dd34 "DriveImageData" typo. 2020-10-14 16:40:07 +03:00
SergeySlice
c7c079e0fb avoid memory leak with ACPI patching
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-14 10:32:36 +03:00
SergeySlice
086e5682ae change KernelPM correspondence to old Clover
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-13 14:28:47 +03:00
jief666
a2ffdf8642 Add Find/Replace with mask tests.
Improve unit test framework.
2020-10-12 17:49:43 +03:00
SergeySlice
d2bec9ba0c Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-10-12 15:06:00 +03:00
jief666
0ab6d8a994 First unit test for memory Find-Replace. 2020-10-12 14:51:08 +03:00
SergeySlice
2bf2302d9d a possibility to switch on/off kext patching from GUI
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-12 14:48:50 +03:00
jief666
4d5ccc026f Quick hack to load OpneRuntime.efi.
UINTN to uintptr_t.
Conditionnal code in OpenCorePkg.
2020-10-11 09:06:50 +03:00
SergeySlice
743b036202 change format printing
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-10 18:15:54 +03:00
SergeySlice
914349ec14 take into account enable-disable patches in menu
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-10 16:31:14 +03:00
jief666
2fddd11e16 Filter out OpenRuntime from efi drivers, to allow linux boot. 2020-10-09 09:05:51 +03:00
SergeySlice
641b75e9eb exclude double settings
implement Skip for OC compatibility

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-08 23:03:41 +03:00
jief666
881796039f Build id in log and in About menu. 2020-10-07 20:25:31 +03:00
jief666
446cec5ede Add a build_id in Version.h
Rename, copy to 'Build' and zip CloverX64.efi.
2020-10-07 19:57:34 +03:00
jief666
941ff0b3a3 Fix TgtBridge. 2020-10-07 12:15:21 +03:00
SergeySlice
8e0f4ad249 correspondence of kext patches clover and oc
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-06 23:02:14 +03:00
jief666
72f4ddd9a6 Fix DSDT oem path.
Test : using OC OSInfo protocol.
2020-10-06 17:24:34 +03:00
jief666
2bc776d63e ReinitRefitLib after Starting an efi image. 2020-10-05 23:45:14 +03:00
jief666
53645a4240 Use Clover implementation of gEfiOSInfoProtocolGuid. 2020-10-05 13:32:23 +03:00
jief666
d12acc1ec5 Remove panic at start if there is no kexts dir. 2020-10-05 12:14:35 +03:00
jief666
dcd17ca8cd Display full path of acpi files in debug log. 2020-10-05 10:25:53 +03:00
SergeySlice
c96d9d57b9 cosmetic changes to xcode project and debug-log
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-04 20:12:10 +03:00
jief666
f312117030
Merge pull request #245 from CloverHackyColor/opencore_integration
Opencore integration
2020-10-04 00:06:31 +03:00
jief666
458d071ec9 Fix kext path when in an OEM folder. 2020-10-03 23:56:50 +03:00
jief666
b8a188382c Make Clover path independent. 2020-10-03 20:02:31 +03:00
SergeySlice
2286f19503 join kext and kernel patches
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-03 17:16:11 +03:00
SergeySlice
53b163c57c provide config-sample with full quirk list
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-10-03 15:17:46 +03:00
jief666
08add49958 remove CustomSmbiosGuid quirks. Force it to false. 2020-09-30 22:03:13 +03:00
jief666
804dd26599 Fix kext path in LoadKexts()
Remove StartLoader11(). StartLoader() starts all macOs with OC.
Merge Quirks sections.
2020-09-30 21:56:55 +03:00
jief666
bd8d3140b2 ProvideConsoleGop setting in GUI. 2020-09-29 15:15:11 +03:00
jief666
48cdadb0b2 Fix bug where StartLoader cannot find kexts.
First implementation of Self object.
2020-09-28 18:57:50 +03:00
jief666
6ed566e98c Const missing. 2020-09-28 12:05:37 +03:00
jief666
f663e8fc10 Force OC CustomSmbiosGuid to false. 2020-09-27 23:02:38 +03:00
jief666
588bd4f342 mOpenCoreConfiguration.Nvram.WriteFlash = true; 2020-09-27 14:52:38 +03:00
jief666
e48ae97c60 Avoid GetDefaultSettings scratching SmUUID read from smbios. 2020-09-24 15:06:10 +03:00
jief666
29bdb1bdcd SmUUID wasn't injected if smbios info were in smbios.plist. 2020-09-23 16:47:47 +03:00
jief666
b592a62d6f Restore Device properties injection.
Uncomment SetCPUProperties() SetupDataForOSX()
2020-09-23 08:20:06 +03:00
jief666
bf59b13c93 Allow kext without executable.
malloc size bug for mOpenCoreConfiguration.Kernel.Patch.Values.
hardcoded resolution Max for OC.
Kernel arch x86_64 instead of X86_64
2020-09-21 17:02:31 +03:00
jief666
d440b5a7f1 Comment out gAppleDevicePropertyProtocolGuid
Rename gAppleDevicePropertyProtocolGuid to
gEfiDevicePathPropertyDatabaseProtocolGuid
Rename gDevicePropertiesGuid to
gEfiDevicePathPropertyDatabaseProtocolGuid
Debug message for USE_OC_SECTION_xxx
2020-09-21 08:53:36 +03:00
jief666
648f5c3d3b Enforce plist correctness. 2020-09-19 23:32:46 +03:00
jief666
09634f7c94 remove READ_FROM_OC 2020-09-19 14:40:41 +03:00
jief666
8cf91394a2 USE_OC_SECTION 2020-09-18 22:54:30 +03:00
jief666
f745d8b0b3 Implement scratching the debug.log at start. 2020-09-18 13:50:49 +03:00
jief666
28a0dc1e8b Uncomment call to SetDevices(this) and SetVariablesForOSX(this)
Temporary panic is OcQuirks not found.
2020-09-18 13:04:07 +03:00
jief666
3877d988f3 OcKernelCache Auto if empty string. 2020-09-18 12:12:15 +03:00
jief666
73f29eb538 Redirect OC log to Clover.
Keep log file handle opened.
Put back -DMDEPKG_NDEBUG.
2020-09-18 11:55:44 +03:00