FASMMMMMMM
This commit is contained in:
parent
946c9e468d
commit
e2572d50af
15 changed files with 175 additions and 715 deletions
16
Makefile
16
Makefile
|
@ -1,17 +1,15 @@
|
|||
all: build/kernel-i386.elf
|
||||
clean:
|
||||
-@rm build/*.o build/*.elf 2> /dev/null || true
|
||||
-@rm *.bin 2> /dev/null || true
|
||||
|
||||
build/start32.o: build/ src/start32.asm
|
||||
nasm -felf32 src/start32.asm -o build/start32.o
|
||||
build/kernel-i386.elf: build/start32.o
|
||||
tcc -m32 -nostdlib -Wl,-Ttext,0x100000 -o build/kernel-i386.elf src/*.c build/start32.o
|
||||
image: build/kernel-i386.elf mount
|
||||
cp build/kernel-i386.elf mnt/
|
||||
start32.bin: src/start32.asm src/serial.asm
|
||||
fasm src/start32.asm start32.bin
|
||||
image: start32.bin mount
|
||||
cp start32.bin mnt/koalemos/
|
||||
sync
|
||||
|
||||
qemu-multiboot: build/kernel-i386.elf
|
||||
qemu-system-i386 -kernel build/kernel-i386.elf -serial stdio
|
||||
qemu-multiboot: start32.bin
|
||||
qemu-system-i386 -kernel start32.bin -serial stdio
|
||||
qemu-image: image
|
||||
qemu-system-i386 koalemos.img -serial stdio
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue