This document instructs you on how to setup your development environment.
⚠️ Follow these instructions on a fresh Ubuntu 22.04 system.
⚠️ These instructions assume that you have superuser privileges on the system.
export WORKDIR=$HOME/nanvix # Change this if you want.
export INSTALL_DIR=$WORKDIR # Change this if you want.
mkdir -p $WORKDIR # Create workspace.
cd $WORKDIR # Switch to workspace.
git clone https://github.com/Bois-Barganhados-Studio/nanvix-user-level-thread.git . # Clone repository.
cat ./tools/dev/setup/ubuntu.sh # Checkout what is going to be installed.
sudo -E ./tools/dev/setup/ubuntu.sh # Install dependencies.
⚠️ This step may take some time to complete.
./tools/dev/setup/binutils.sh $INSTALL_DIR # Build Binutils.
./tools/dev/setup/gcc.sh $INSTALL_DIR # Build GCC.
./tools/dev/setup/gdb.sh $INSTALL_DIR # Build GDB.
⚠️ This step may take some time to complete.
You may chose to between QEMU or Bochs.
./tools/dev/setup/qemu.sh # Build QEMU.
./tools/dev/setup/bochs.sh # Build Bochs.