mirror of https://github.com/tailix/loadwarka.git
16 lines
430 B
Bash
Executable File
16 lines
430 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
BIN='../cross/root/bin'
|
|
CROSS="$BIN/i386-elf-"
|
|
|
|
./clean.sh
|
|
|
|
${CROSS}gcc -c src/x86_stage1.S -o src/x86_stage1.o
|
|
${CROSS}gcc -c src/x86_stage2.S -o src/x86_stage2.o
|
|
${CROSS}ld -Ttext 200000 --oformat binary -o src/x86_stage1.bin src/x86_stage1.o
|
|
${CROSS}ld -Ttext 200000 --oformat binary -o src/x86_stage2.bin src/x86_stage2.o
|
|
./testyboot mbr mbr.bin src/x86_stage1.bin
|
|
cat mbr.bin src/x86_stage2.bin > disk.img
|