mirror of
https://github.com/tailix/loadwarka.git
synced 2024-11-11 13:50:54 -05:00
Improve build
This commit is contained in:
parent
c9f18142e9
commit
efd1feea42
1 changed files with 7 additions and 6 deletions
13
build.sh
13
build.sh
|
@ -3,13 +3,14 @@
|
|||
set -e
|
||||
|
||||
BIN='vendor/cross/root/bin'
|
||||
SRC='src/x86'
|
||||
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 -Tsrc/x86/stage1.ld -o src/x86/stage1.bin src/x86/stage1.o
|
||||
${CROSS}ld -Tsrc/x86/stage2.ld -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
|
||||
${CROSS}gcc -c $SRC/stage1.S -o $SRC/stage1.o
|
||||
${CROSS}gcc -c $SRC/stage2.S -o $SRC/stage2.o
|
||||
${CROSS}ld -T$SRC/stage1.ld -o $SRC/stage1.bin $SRC/stage1.o
|
||||
${CROSS}ld -T$SRC/stage2.ld -o $SRC/stage2.bin $SRC/stage2.o
|
||||
./testyboot mbr mbr.bin $SRC/stage1.bin
|
||||
cat mbr.bin $SRC/stage2.bin > disk.img
|
||||
|
|
Loading…
Reference in a new issue