This is a way to compile Redox OS in MacOS Apple Silicon using Podman.
WIP -- This gist is being updated to match with the book but specifics to MacOS Apple Silicon for top DX. For native bootstrap follow another gist (also WIP)
cd ~/Document
git clone https://gitlab.redox-os.org/redox-os/redox
cd redox
git submodule update --init --recursive
./podman_bootstrap.sh -d
Set arch target. Write this to ./.config
:
PODMAN_BUILD?=1
ARCH=x86_64
CONFIG_NAME=desktop-minimal
PREFIX_BINARY=1
REPO_BINARY=1
The PREFIX_BINARY
and REPO_BINARY
will make the build speed so much quick.
An open MR is requested. Meanwhile you can switch to this branch to make podman working.
git remote set-url origin https://gitlab.redox-os.org/willnode/redox
git checkout patch-make-macos
Run make
to run build, run make qemu
to run it.
For running aarch64
arch, the correct firmware is this:
- FIRMWARE=/usr/share/AAVMF/AAVMF_CODE.fd
+ FIRMWARE=/opt/homebrew/opt/qemu/share/qemu/edk2-aarch64-code.fd
Also if you like to prefer x64 UEFI:
- FIRMWARE=/usr/share/OVMF/OVMF_CODE.fd
+ PFLASH0=/opt/homebrew/opt/qemu/share/qemu/edk2-x86_64-code.fd
= = = = = = =
switching to ARM Ubuntu:
relibc does not compile; known problem with ARM hosts.
= = = = = = =