added new resource, removed build.sh, make can do everyting now

This commit is contained in:
nigel 2021-05-02 15:53:31 -04:00
parent b44f6761f1
commit 9c0146869c
2 changed files with 3 additions and 22 deletions

View File

@ -47,3 +47,6 @@ I hope to soon have the basic output and booting sequence with multiboot done.
[wiki.osdev.org/Main_Page](wiki.osdev.org/Main_Page)
[Modern Operating Systems [book]](https://www.amazon.com/Modern-Operating-Systems-Tanenbaum-Andrew/dp/1292061421/ref=sr_1_1?__mk_nl_NL=%C3%85M%C3%85%C5%BD%C3%95%C3%91&dchild=1&keywords=Modern+Operating+systems&qid=1619967779&sr=8-1)
[whiteheadsoftware.dev](https://whiteheadsoftware.dev/operating-systems-development-for-dummies/)

View File

@ -1,22 +0,0 @@
#!/bin/bash
# Environment setup
export PATH="$HOME/opt/cross/bin:$PATH"
## Setup directory variables
SRC_DIR=src
BUILD_DIR=build
# clean old build
rm build/*
# Execute build
i686-elf-as $SRC_DIR/boot.s -o $BUILD_DIR/boot.o
i686-elf-gcc -c $SRC_DIR/kernel.c -o $BUILD_DIR/kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra
i686-elf-gcc -T $SRC_DIR/linker.ld -o $BUILD_DIR/myos.bin -ffreestanding -O2 -nostdlib $BUILD_DIR/boot.o $BUILD_DIR/kernel.o -lgcc
## How to run build
## Use the command: qemu-system-i386 -kernel build/myos.bin