Commit Graph

75 Commits

Author SHA1 Message Date
SergeySlice
7c21ded8c1 add gibraltar
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-08-04 20:22:25 +03:00
jief666
ff012267ca Fix CCPV compilation. 2022-05-20 11:29:26 +02:00
jief666
f18a5127ad Allow tracing getMobile result. 2022-04-14 18:06:34 +02:00
SergeySlice
4266f4ddf3 make defaults for HWTarget
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-02-05 15:57:08 +03:00
SergeySlice
79f048aa46 exclude temporary files from compilation
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-02-02 20:52:17 +03:00
SergeySlice
2aa7f5c42e change some defaults
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-01-30 21:49:31 +03:00
SergeySlice
7ffa4d6bf8 Merge branch 'master' of https://github.com/CloverHackyColor/CloverBootloader 2022-01-22 13:39:41 +03:00
SergeySlice
ebb6e486ba some comments on AMD cards
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-01-22 13:39:20 +03:00
SergeySlice
2de9d98382 check default extended features for more models
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2022-01-15 10:06:07 +03:00
SergeySlice
d537baf58d some info about HWTarget
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-11-14 21:16:50 +03:00
jief666
e036b3d54b Do not display config info messages at launch. 2021-10-29 21:56:32 +02:00
jief666
710b2dcee5 Allow SmbiosDictClass to work without ProductName defined (using a
defaultMacModel member that has to be assigned before).
Move BiosVersion, BiosReleaseDate and EfiVersion checks in
SmbiosDictClass. Create warnings for incorrect values.
Rename MaxMachineType to MaxMacModel.
Remove GlobalConfig->BiosVersionUsed, ReleaseDateUsed and
EfiVersionUsed.
2021-10-19 19:57:27 +02:00
jief666
cee098d1e6 Rename MACHINE_TYPES enum to MacModel.
Rename PLATFORMDATA array to ApplePlatformDataArrayClass.
Refactor so enum MacModel doesn't have to be in the same order as
ApplePlatformDataArrayClass.
Create static_assert that guarantee that all model has platform data.
2021-10-18 21:06:19 +02:00
SergeySlice
26f6050622 one more compatibility issue
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-10-05 19:00:02 +03:00
SergeySlice
198a8e3d9b c++20 compatibility
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-10-03 20:33:03 +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
SergeySlice
4be6350c94 FirmwareFeatures must be odd
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-09-25 15:13:38 +03:00
SergeySlice
f0a20247e9 implement ExtendedFeatures
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-09-25 14:33:16 +03:00
Sherlocks
c7dd0cb8cb Update Platformdata 2021-07-25 11:25:36 +09:00
SergeySlice
626637762c merge conflicts
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-05-04 19:23:48 +03:00
SergeySlice
9c6e5ce05c add new csr bits to Clover GUI to choose
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-05-04 19:21:42 +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
jief666
0223567648 New parser XML. New ConfigManager. A lot of refactoring... 2021-04-28 21:30:34 +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
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
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
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
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
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
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
jief666
4a3bc612b8 Create settings section Graphics, RtVariables.
Mobe Turbo in GlobalConfig.
2021-03-26 12:43:15 +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
d33d0479fa Continuing refactoring SETTINGS_DATA. 2021-03-19 18:35:01 +03:00
jief666
8209394af9 Continuing to refactor SETTINGS_DATA. 2021-02-11 14:41:59 +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
SergeySlice
d5f0ca741c add platform features for new models
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-07 09:26:40 +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
SergeySlice
3142593e38 update model data
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-02-03 21:04:33 +03:00
jief666
fa0bdcd181 Starting to refactor settings. 2021-02-02 12:02:21 +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
7327d95aba adding data for iMac20
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2020-12-13 11:51:50 +03:00
Jief L
da8ad5c0eb MSVC compilation. 2020-11-02 16:45:11 +03:00