Building on Windows - lingfeishengtian/PistachiOS GitHub Wiki

Building on Windows is more challenging than other operating systems and involves more steps. Though, it is possible with ARM's release of a cross compiler for windows that supports AArch64.

Windows Dependencies include:

  1. qemu
  2. aarch64-none-elf

Go to this link to find the windows executable for qemu and install it. You will then need to add where you installed qemu to your path. The default installation location is C:\Program Files\qemu.

Tutorial on how to add to your PATH environment variable

Disclaimer: This is not my website

To install aarch64-none-elf, you will need to go to the official arm developer site. Go to the "Windows hosted cross compilers" section and find AArch64 bare-metal target. Download this tar.xz file and unzip with a supported program like 7-zip (note that WinZip did not work for this file, it created empty executables). Store this folder somewhere safe. Then add the bin folder to your path.

In the end your path should have two new entries

C:\<path to directory>\gcc-arm-mingw-w64-i686-aarch64-none-elf\bin
C:\Program Files\qemu

When you are ready, run

$ make run

or

$ make qemu-monitor

View Makefile for more details.