Building on Mac - lingfeishengtian/PistachiOS GitHub Wiki
Building on Mac is fairly simple since you can use homebrew to install everything.
If you do not already have homebrew installed, go here and look at Install Homebrew.
Mac Dependencies include:
- qemu
- aarch64-none-elf
Fire up your terminal and get ready to paste some commands in. qemu is essential in testing and running the OS in a virtual machine, run the command below to install qemu.
$ brew install qemu
To install aarch64-none-elf, you will need to "tap" into another brew repository to retrieve some files. There are a few repositories you could use, for example: here. To tap into the repository, run
$ brew tap SergioBenitez/osxct
Next, install the toolchain with this command
$ brew install aarch64-none-elf
When you are ready, run
$ make run
or
$ make qemu-monitor
View Makefile for more details.