jief666
2c829b66cd
Create XBool to avoid nasty side effect when assigning int to bool.
2021-09-28 11:28:45 +03:00
SergeySlice
38f629e980
Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader
2021-09-27 22:41:04 +03:00
SergeySlice
5226aa6153
code formatting
...
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-09-27 22:40:40 +03:00
jief666
c6b08f89ba
Change DsdtsList from statically allocated to XStringWArray.
2021-09-27 10:18:52 +03:00
jief666
8134f37bde
Change ConfigsList from statically allocated to XStringWArray.
2021-09-27 10:05:11 +03:00
jief666
e8a9e4af4f
Merge pull request #446 from z3DD3r/master
...
Add ExtendBTFeatureFlags to Quirks
2021-09-25 14:45:42 +03:00
jief666
537884c7bd
Remove CPU/Latency. Warning if CPU/Latency is used.
2021-09-25 13:57:07 +03:00
jief666
e6c194d1b9
Change OC_STRING_ASSIGN_N macro to function to fix a side effect.
2021-09-25 13:25:02 +03:00
jief666
9d7d7b6059
Delegate patching ACPI if USE_OC_SECTION_Acpi is defined.
...
Comments.
2021-09-25 13:17:25 +03:00
jief666
f70da719e5
Panic message if OpenRuntime is wrong.
...
OC version.
2021-09-25 13:02:47 +03:00
z3DD3r
81d1808c0a
Add ExtendBTFeatureFlags to Quirks
2021-09-25 11:51:37 +03:00
jief666
0bca61ad3d
Handle multiple OpenRuntime version.
2021-09-25 11:03:31 +03:00
jief666
9098b56bdf
Make OC 0.7.3 compile as a library for Clover. It compiles, doesn't mean
...
it's
working !
Imported some new definition in MdePkg.
Add RegisterFilterLibNull and MdeLibs.dsc.inc.
Set PcdDebugPropertyMask to UINT8.
2021-09-23 13:36:41 +03:00
jief666
a634a8258c
DumpNvram().
...
Debug messages in Self.
Typo in BootLog.cpp
Comment in XStringAbstract.h
2021-07-02 18:10:10 +03:00
jief666
d2e652bd44
Move some initializations in ConfigManager.
2021-07-01 18:16:54 +03:00
SergeySlice
adb880456d
initial value for KernelPM to be in menu
...
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-06-25 20:58:38 +03:00
SergeySlice
e12aefe816
repaired taking SavingMode from config
...
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-06-24 22:52:12 +03:00
SergeySlice
f424a77c25
repaired taking C3Latency from config
...
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-06-23 21:24:46 +03:00
SergeySlice
fd780172d3
Monterey compatibility
...
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-06-09 20:49:30 +03:00
jief666
36e63bd7f0
Fix crash. Handle CompName->GetDriverName == NULL in
...
DisconnectSomeDevices().
2021-05-23 06:18:47 +03:00
SergeySlice
4bd3434026
Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader
2021-05-19 20:18:06 +03:00
SergeySlice
097e95eed6
apply clover's FakeCPUID patch instead of OC
...
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-05-19 20:10:41 +03:00
jief666
2b84ee61a3
Crash in LoadLatestNvramPlist when EfiLibOpenRoot returns null.
2021-05-19 15:28:57 +03:00
SergeySlice
23f0df20ed
delegate fakecpuid to OC
...
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-05-18 06:14:56 +03:00
jief666
82ba60a90a
Revert commit a9cb69 : remove workaround and fix operator = in XIcon.
2021-05-17 08:52:17 +03:00
SergeySlice
a9cb692f6e
clean night icon usage bug
...
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-05-15 17:52:16 +03:00
jief666
0b0667997a
Try to compile secure boot. Error in some openssl asm instructions.
2021-05-09 17:13:37 +03:00
jief666
54bddb2fa9
Fix wrong access to SlotDevices in FixAirport.
...
Send panic message to log.
2021-05-06 09:23:07 +03:00
SergeySlice
8dab184a8b
PauseForKey has new argument type
...
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-05-05 18:40:10 +03:00
jief666
ee78cb92fa
Add message and reboot if macOs failed to load (instead of a black
...
screen).
Log image handles of loaded efi.
2021-05-04 13:26:54 +03:00
jief666
391ed70310
Fix bug in ConfigPlist when an unknown key happens is ACPI/DSDT/Fixes.
...
Light refactor of PauseForKey.
gSettings.CPU.SavingMode is ConfigManager.
PlatformPosix : do not redefine abort(), use abort() instead of
CpuDeadLoop().
Format debug.log file name.
Use malloc/free instead of AllocateZeroPool/FreePool for validator
compatibility.
Use strlen instead of AsciiStrLen for validator compatibility.
getRBr() and getRPlt() : make them independent from global var.
Fix wrong line number in XmlLiteParser.
2021-05-04 13:03:40 +03:00
SergeySlice
fb86ee152a
update clover.proj
...
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-29 21:13:13 +03:00
jief666
0223567648
New parser XML. New ConfigManager. A lot of refactoring...
2021-04-28 21:30:34 +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
SergeySlice
917760ba82
some comments
...
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-15 21:22: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
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
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
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
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
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
jief666
4a3bc612b8
Create settings section Graphics, RtVariables.
...
Mobe Turbo in GlobalConfig.
2021-03-26 12:43: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
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
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
d33d0479fa
Continuing refactoring SETTINGS_DATA.
2021-03-19 18:35:01 +03:00
jief666
c698bfb932
Fix crash when no OpenRuntime.efi.
2021-03-19 10:41:24 +03:00
jief666
3fb08d97f8
Continuation of refactor of settings.
2021-03-15 12:02:34 +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
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
3fbfaf07eb
fix nvram.plist reading
...
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-19 23:07:24 +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
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
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
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
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
jief666
b5e0562a3b
DMG boot support through OC.
2021-01-22 11:35:57 +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
jief666
a73d7d6d79
kext order for BrcmFirmwareData, BrcmPatchRAM2, BrcmPatchRAM3.
2020-11-28 20:26:45 +03:00
jief666
8a561576cd
Add IC when checking drivers name at loading.
2020-11-24 16:01:32 +03:00
jief666
f28e8a2244
Fix DellSmbiosPatch.
2020-11-19 00:49:02 +03:00
jief666
7f1b87c92f
Create object MacOsVersion.
2020-11-13 00:25:56 +03:00
jief666
5d91bbe253
Restore USBFixOwnership feature.
2020-11-05 09:29:56 +03:00
jief666
d540f76b54
Handle Skip in patches.
2020-10-23 21:52:01 +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
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
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
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
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
2bc776d63e
ReinitRefitLib after Starting an efi image.
2020-10-05 23:45:14 +03:00
jief666
dcd17ca8cd
Display full path of acpi files in debug log.
2020-10-05 10:25:53 +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