aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
Diffstat (limited to 'run')
-rwxr-xr-xrun7
1 files changed, 5 insertions, 2 deletions
diff --git a/run b/run
index 2cd64c1..8a53630 100755
--- a/run
+++ b/run
@@ -89,7 +89,7 @@ make_cross() {
}
make_build() {
- rm -rf ./disk/bin/ ./disk/
+ rm -rf disk/bin/ disk/
mkdir -p build/ disk/bin/ disk/
echo "Building..."
@@ -98,8 +98,11 @@ make_build() {
make
cd ..
- # Copy files
+ # Assemble bootloader
nasm src/entry.asm -f bin -o disk/boot.bin
+
+ # Make kernel binary
+ objcopy -O binary build/melvix.o build/melvix.bin
cp build/melvix.bin disk/
# Create disk image