My hobby operating system written in Rust
You need a few things to build this:
cargo-xbuild
nasm
Install Rust with rustup. Make sure install nightly and select it as your default compiler.
Install nasm
from Homebrew:
brew install nasm
Install cargo-xbuild
from cargo:
cargo install cargo-xbuild
Install binutils from source. I build my cross compilers into ~/cross
, but anywhere works.
curl -O https://ftp.gnu.org/gnu/binutils/binutils-2.32.tar.gz
tar xf binutils-2.32
cd binutils-2.32
./configure --target=x86_64-elf --disable-werror --prefix=$HOME/cross
make && make install
make