Makefile correction

* fix fd.iso kernel path
* add debug target
This commit is contained in:
Mathieu Maret 2018-08-05 14:12:18 +02:00
parent a9c01aefda
commit 89837e03bf

View File

@ -21,12 +21,9 @@ kernel:$(asmobj) $(cobj) linker.ld
objcopy --only-keep-debug $@ $@.sym
objcopy --strip-debug $@
fd.iso: kernel
mkdir -p isodir/boot/grub
cp $< isodir/boot/grub/
cp $< isodir/boot/
@echo -e "menuentry \"myos\" {\n\tmultiboot /boot/kernel\n}" > isodir/boot/grub/grub.cfg
grub-mkrescue -o $@ isodir
@ -43,6 +40,10 @@ core/irq_handler.o:core/irq_handler.c
test:kernel
qemu-system-x86_64 -kernel $<
debug:kernel kernel.sym
qemu-system-x86_64 -s -S -kernel kernel
gdb -s kernel.sym -ex "target remote localhost:1234"
clean:
$(RM) kernel $(asmobj) $(cobj) $(deps) fd.iso kernel.sym