Commit Graph

65 Commits

Author SHA1 Message Date
Slice
00466c6e61 reduce clover size
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-12-16 10:10:04 +03:00
Slice
e375956169 dont use HDEF and HDAU names, it is AppleALC business
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-09-21 21:48:03 +03:00
SergeySlice
d5a69286c7 use count for dsdt patches
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-08-17 13:58:30 +03:00
jief666
562ffe5ff0 Add Skip value in ACPI DSDT patches. 2022-04-14 18:07:46 +02:00
SergeySlice
c64e643e90 unused device FDC_
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-02-23 12:51:33 +03:00
SergeySlice
80a7bd0b7a some style check
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-01-25 20:07:33 +03:00
SergeySlice
d388e910fe wrong DEBUG usage, firmware version is 2
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-01-23 15:19:15 +03:00
jief666
83593a5ab9 Convert bool to XBool. 2021-09-28 16:54:31 +03:00
jief666
2c829b66cd Create XBool to avoid nasty side effect when assigning int to bool. 2021-09-28 11:28:45 +03:00
jief666
54bddb2fa9 Fix wrong access to SlotDevices in FixAirport.
Send panic message to log.
2021-05-06 09:23:07 +03:00
jief666
d52803e7cd DO NOT explicitly call default ctor with new because of clang bug. 2021-05-05 20:10:10 +03:00
jief666
0223567648 New parser XML. New ConfigManager. A lot of refactoring... 2021-04-28 21:30:34 +03:00
SergeySlice
917760ba82 some comments
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-04-15 21:22:14 +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
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
4a3bc612b8 Create settings section Graphics, RtVariables.
Mobe Turbo in GlobalConfig.
2021-03-26 12:43:15 +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
e1a49a85b9 repair RenameDevices
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-20 21:33:09 +03:00
jief666
8209394af9 Continuing to refactor SETTINGS_DATA. 2021-02-11 14:41:59 +03:00
jief666
7f1b87c92f Create object MacOsVersion. 2020-11-13 00:25:56 +03:00
Jief L
da8ad5c0eb MSVC compilation. 2020-11-02 16:45:11 +03:00
jief666
c458db4acd Typo 2020-10-26 18:02:54 +03:00
jief666
941ff0b3a3 Fix TgtBridge. 2020-10-07 12:15:21 +03:00
jief666
b8a188382c Make Clover path independent. 2020-10-03 20:02:31 +03:00
jief666
b592a62d6f Restore Device properties injection.
Uncomment SetCPUProperties() SetupDataForOSX()
2020-09-23 08:20:06 +03:00
SergeySlice
352c75c711 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2020-08-30 20:25:30 +03:00
SergeySlice
6dd178030b more informative print
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-08-30 20:25:16 +03:00
Sergey Isakov
3493015cf2 fix DSDT patching
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
2020-08-30 11:02:55 +03:00
jief666
e9f0f8ccd8 DSDT Patches refactor as an array of object.
Entry->VolName renamed Entry->DisplayedVolName because VolName already
exits in the hierarchie.
2020-08-27 21:47:56 +03:00
jief666
2961827dce Correct some refactoring bugs. 2020-08-17 22:40:52 +03:00
jief666
a9bfb87ec2 CmpDev in FIXAirport() could still crash is
AirportBridgeDeviceName.length() != 4.
2020-08-16 16:54:14 +03:00
jief666
11817925ae Add test in CmpDev.
Do not call CmpDev if gSettings.AirportBridgeDeviceName is empty()
2020-08-16 11:41:44 +03:00
jief666
351918515f Restore CmpAdr. length() test in CmpDev. 2020-08-16 10:54:52 +03:00
jief666
bc04c86a93 Refactoring some CHAR8* and CHAR16* to XString. 2020-08-15 16:47:56 +03:00
jief666
59d8cbad7f Refactoring KEXT_PATCH.
Change numerous CHAR8* CHAR16* to XString.
2020-08-12 18:15:47 +03:00
jief666
4555bb9e9f Remove the last PoolPrints. 2020-08-09 18:55:30 +03:00
SergeySlice
9efd195bbb one more quirk for dsdt by Exception
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-07-12 22:10:21 +03:00
Steve
34759a5bd5 Update FixRenameByBridge2() to let it work in SSDTs 2020-06-30 14:28:37 -04:00
Steve
3281303260 Add missing TgtBridge check in AcpiPatcher::PatchAllTables(), fix unexpected rename in OEM SSDTs when TgtBridge is set 2020-06-30 08:56:16 -04:00
SergeySlice
7af605b0b6 eliminate some warnings by gcc10
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-15 06:23:33 +03:00
SergeySlice
0b7eed38f1 no more drop DSM method, it is not universal
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-09 12:15:03 +03:00
SergeySlice
562e571d32 take into account longer DSDT
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-05-06 09:21:30 +03:00
Jief L
d27afce852 Comment out unused global var. 2020-04-29 23:32:22 +03:00
SergeySlice
a621438d7c symbolic kexts and kernel patcher
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-27 18:16:43 +03:00
SergeySlice
01f33f7552 detect unknown linux versions,
stylish change: remove space between func and brace

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-04-23 12:08:10 +03:00
jief
4faa0aa8a2 Fix %X and %u format for char and short. 2020-04-17 16:14:24 +03:00
jief
9dc66aee39 Remove macro from Platform.h. 2020-04-16 12:09:22 +03:00