Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Qonfused/Starter-OCE-Build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starter OCE-Build Template


A template Hackintosh project built on top of the OpenCore bootloader and OCE-Build build manager.

License SemVer OpenCore OCE Build

Note

This template is for an archived version of OCE-Build pre-dating its v1.0.0 rewrite. An archived version of the project is available here.

⚡Quick Links

✨ Getting Started

Open in GitHub Codespaces

1. Clone this repository using Git

To clone this repository locally with submodules, run the below commands:

git clone --recurse-submodules https://github.com/Qonfused/Starter-OCE-Build
cd Starter-OCE-Build

If you've cloned this project without resolving submodules, you'll need to initialize them:

git submodule init
git submodule update

Note: Optionally, you can add git aliases to always resolve submodules:

git config --global alias.clone-all 'clone --recurse-submodules'
git config --global alias.pull-all 'pull --recurse-submodules'

2. Build this repository using OCE-Build

Note OCE-Build must be run in a Linux or macOS environment.

For Windows users, refer to aka.ms/wslinstall and aka.ms/wsl2 for instructions on installing wsl and upgrading to the wsl2 kernel (recommended).

  • You can install a Linux distribution directly from the Microsoft Store (e.g. Ubuntu 20.04.5 LTS).
  • Alternatively, you can setup devcontainers with Docker and VSCode to run a containerized Linux environment on top of wsl. The devcontainer for this project will setup and build the project automatically upon container creation.

For Linux users (or wsl), ensure you have the following commands available:

  • cURL
    • Check with curl --version
    • Install with sudo apt install curl
  • bsdtar
    • Check with bsdtar --version
    • Install with sudo apt install libarchive-tools
  • iasl
    • Check with iasl -v
    • Install with sudo apt install acpica-tools

To build your project's EFI, run the below command at the root of the project:

# Run oce-build pipeline
bash scripts/build.sh

You can run a validation script to check the EFI build output with:

# Verify build output
bash scripts/lib/oce-build/scripts/validate-efi.sh -c src/config.yml

3. Using this project with macOS

Note To enable iServices functionality, please refer to the notice in the build-generated .serialdata file under the src/ directory for instructions on validating your serial number. This is automatically generated each time you run a new build using the build script as long as no existing .serialdata file exists. Remember that you can re-generate this data by running bash scripts/lib/oce-build/scripts/patch-serial.sh -c src/config.yml or by removing .serialdata and re-running the build script.

You can optionally instead download GenSMBIOS follow the iServices guide to generate new SMBIOS data for your machine to be applied before running the build script. You'll then need to store your SMBIOS data in a new .serialdata file:

MLB:                String | "M0000000000000001"
ROM:                Data   | <112233445566>
SystemProductName:  String | "iMac19,1"
SystemSerialNumber: String | "W00000000001"
SystemUUID:         String | "00000000-0000-0000-0000-000000000000"

⚖️ License

BSD 3-Clause License.