ajh123-archives / gtmos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GTMOS

This repo contains the code from the "Nanobyte os"

Building

First, install the following dependencies:

# Ubuntu, Debian:
$ sudo apt install build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo \
                   nasm mtools qemu-system-x86
           
# Fedora:
$ sudo dnf install gcc gcc-c++ make bison flex gmp-devel libmpc-devel mpfr-devel texinfo \
                   nasm mtools qemu-system-x86
                   
# Arch & Arch-based:
$ paru -S gcc make bison flex libgmp-static libmpc mpfr texinfo nasm mtools qemu-system-x86

NOTE: to install all the required packages on Arch, you need an AUR helper.

After that, run make toolchain, this should download and build the required tools (binutils and GCC). If you encounter errors during this step, you might have to modify build_scripts/config.mk and try a different version of binutils and gcc. Using the same version as the one bundled with your distribution is your best bet.

Finally, you should be able to run make. Use ./run.sh to test your OS using qemu.

About

License:GNU General Public License v3.0


Languages

Language:C 75.7%Language:Assembly 18.4%Language:Makefile 5.1%Language:Shell 0.8%