|
|
@ -30,13 +30,14 @@ else
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
ld := $(prefix)ld
|
|
|
|
ld := $(prefix)ld
|
|
|
|
|
|
|
|
objdump := $(prefix)objdump
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all clean run iso kernel build
|
|
|
|
.PHONY: all clean run iso kernel build debug_asm
|
|
|
|
|
|
|
|
|
|
|
|
all: $(kernel)
|
|
|
|
all: $(kernel)
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
clean:
|
|
|
|
@rm -r build
|
|
|
|
@rm -r build target
|
|
|
|
|
|
|
|
|
|
|
|
run: $(iso)
|
|
|
|
run: $(iso)
|
|
|
|
@qemu-system-$(arch) $(qemu_opts) || [ $$? -eq 11 ] # run qemu and assert it exit 11
|
|
|
|
@qemu-system-$(arch) $(qemu_opts) || [ $$? -eq 11 ] # run qemu and assert it exit 11
|
|
|
@ -45,6 +46,9 @@ iso: $(iso)
|
|
|
|
|
|
|
|
|
|
|
|
build: iso
|
|
|
|
build: iso
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
debug_asm:
|
|
|
|
|
|
|
|
@$(objdump) -dS $(kernel) | less
|
|
|
|
|
|
|
|
|
|
|
|
$(iso): $(kernel) $(grub_cfg)
|
|
|
|
$(iso): $(kernel) $(grub_cfg)
|
|
|
|
@mkdir -p build/isofiles/boot/grub
|
|
|
|
@mkdir -p build/isofiles/boot/grub
|
|
|
|
@cp $(kernel) build/isofiles/boot/kernel.bin
|
|
|
|
@cp $(kernel) build/isofiles/boot/kernel.bin
|
|
|
|