Configuration: Class OpenCoreBuild - axivo/opencore GitHub Wiki
This wiki page will detail the opencore/build.py
OpenCoreBuild
class and methods, used to generate the OpenCore tree and configuration for macOS.
OpenCoreBuild
Class Generates the EFI tree and config.plist
file.
__init__(self, directory)
Method Constructs a new OpenCoreBuild
object.
- param
directory
: Path of the build directory
configure_kexts(self, kexts=[])
Method Inserts kexts into kernel Add
data settings.
- param
kexts
: List of kext properties to be applied
configure_patches(self, patches=[])
Method Inserts patches into kernel Patch
data settings.
- param
kexts
: List of patch properties to be applied
copy_tree(self, source, destination)
Method Copies directories and files recursively.
- param
source
: Source path - param
destination
: Destination path
extract_files(self, file, directory, local=False)
Method Extracts the contents of a zip file directly from Internet.
- param
file
: File name - param
directory
: Directory name where file will be extracted - param
local
: Local file will be extracted
install_kext(self, repo, project, version, debug=False)
Method Builds the kext files structure.
- param
repo
: Repo name - param
project
: Project name - param
version
: Project version - param
debug
: Install DEBUG release
install_opencore(self, version, debug=False)
Method Builds the OpenCore files structure.
- param
version
: Project version - param
debug
: Install DEBUG release
print_bold(self, string)
Method Prints bold text.
run_misc_tasks(self)
Method Runs miscellaneous post install tasks.
unhexlify(self, string)
Method Transforms the binary data represented by the hexadecimal string.
- param
string
: String to transform
Example of Hex
value transformed into Base64 Data
value:
update_settings(self, result, settings)
Method Updates existing settings with new settings.
- param
result
: Default settings - param
settings
: Settings to be updated
write_plist(self, settings)
Method Generates the OpenCore configuration file.
- param
settings
: Settings to be updated
write_tree(self, debug=False)
Method Generates the OpenCore files structure.
- param
debug
: Install DEBUG release