Add basic debug toggle

Currently not accessible via user-input
This commit is contained in:
Mykola Grymalyuk
2021-03-04 09:58:12 -07:00
parent 5cff0a8c6c
commit 3dcc0d0b0b
3 changed files with 14 additions and 1 deletions

View File

@@ -36,6 +36,11 @@ class Constants:
self.custom_mxm_gpu: str = None
self.current_gpuv: str = None
self.current_gpud: str = None
# Debug Settings
self.opencore_debug = False
self.kext_debug = False
self.verbose_debug = True
# Payload Location
# OpenCore
@property

View File

@@ -193,6 +193,14 @@ class BuildOpenCore:
self.config["UEFI"]["Drivers"] = ["OpenCanopy.efi", "OpenRuntime.efi"]
# Hibernation Patch
self.config["Booter"]["Quirks"]["DiscardHibernateMap"] = True
#DEBUG Settings
if self.constants.verbose_debug == True:
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " -v"
if self.constants.kext_debug == True:
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " -liludbgall"
self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " msgbuf=1048576"
if self.constants.opencore_debug == True:
self.config["Misc"]["Debug"]["Target"] = 67
def set_smbios(self):
spoofed_model = self.model

View File

@@ -804,7 +804,7 @@
<key>SystemAudioVolume</key>
<data>Rg==</data>
<key>boot-args</key>
<string>-v keepsyms=1 debug=0x100</string>
<string>keepsyms=1 debug=0x100</string>
<key>run-efi-updater</key>
<string>No</string>
<key>csr-active-config</key>