From 9b851331995c84f9548eba05e51b47656cb83deb Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 9 Jul 2021 16:08:59 +0200 Subject: support building .iso images --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 605b112..57100d4 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,13 @@ clean: rm -vf kernel.bin rm -vf **/*.o +boot.iso: kernel.bin grub.cfg + mkdir iso_tmp + mkdir -p iso_tmp/boot/grub + cp kernel.bin iso_tmp/boot + cp grub.cfg iso_tmp/boot/grub + grub-mkrescue -o $@ iso_tmp + rm -rv iso_tmp kernel.bin: $(OBJ) $(CC) $(LFLAGS) -T linker.ld $^ -o $@ -- cgit v1.2.3