1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00
kernel/iso/Makefile

22 lines
532 B
Makefile
Raw Normal View History

2017-11-01 05:20:44 -04:00
ifneq (ok, $(shell test -f '$(K)' && echo 'ok'))
$(error 'Kernel "$(K)" does not exist')
endif
ifneq (ok, $(shell grub-file --is-x86-multiboot '$(K)' && echo 'ok'))
$(error 'Kernel "$(K)" is not compliant with Multiboot 1')
endif
ifneq (ok, $(shell grub-file --is-x86-multiboot2 '$(K)' && echo 'ok'))
$(error 'Kernel "$(K)" is not compliant with Multiboot 2')
endif
run: all
qemu-system-i386 -cdrom image.iso
all:
cp "$(K)" rootfs/boot/kernelmq
grub-mkrescue rootfs -o image.iso
clean:
rm -f image.iso rootfs/boot/kernelmq