Skip to content

AdrianKoshka/macc-uefi-build-script

Repository files navigation

Macchiatobin UEFI Build Scripts

If you're still using this, see this blogpost

How to use

$ python3 ./kickoff.py -h   
usage: kickoff.py [-h] [-e] [-t] [-n] [-jb]

Kick off the UEFI clone and build process

optional arguments:
  -h, --help            show this help message and exit
  -e, --ecam-patch      Include the PCI ECAM base address patch
  -t, --clone-from-latest-tag
                        Clone from the latest EDK2 tag
  -n, --nuke            Nuke the directory which containes the git and build
                        directories
  -jb, --just-build     Just build EDK2, don't clone repos

Commandline

$ python kickoff.py

Docker

$ docker build -t mubs:latest .
$ docker run --rm -it -v `pwd`:/opt mubs:latest

Podman

$ buildah bud -t mubs:latest .
$ podman run --rm -it -v `pwd`:/opt:z mubs:latest

Cross Compiling

For those on an x86_64 host, the steps are mostly the same, though you'll want to make sure you install the aarch64 compiler for cross-compilng. The example below assumes you're using Ubuntu.

$ sudo apt install build-essential acpica-tools device-tree-compiler uuid-dev libssl-dev gcc-aarch64-linux-gnu --install-recommends -y
$ cd actions/scripts
$ python kickoff.py

Docker cross compile

$ docker build -f cross-compile.Dockerfile -t mubs-cc:latest .
$ cd actions/scripts
$ docker run --rm -it -v `pwd`:/opt:z mubs-cc:latest

Podman cross compile

$ buildah bud -f cross-compile.Dockerfile -t mubs-cc:latest .
$ cd actions/scripts
$ podman run --rm -it -v `pwd`:/opt:z mubs-cc:latest

Burning to microSD card

dd if=flash-image.bin of=/dev/sdX bs=512 seek=1 conv=fsync

About

A collection of scripts to build UEFI firmware for the Macchiatobin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published