diff options
author | dzwdz | 2021-07-09 16:08:59 +0200 |
---|---|---|
committer | dzwdz | 2021-07-09 16:08:59 +0200 |
commit | 9b851331995c84f9548eba05e51b47656cb83deb (patch) | |
tree | dab7c1c3af8ba8616c5670b88138e3a07e332c79 | |
parent | 5ee08673199299769549f996a83c326c833801dc (diff) |
support building .iso images
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | grub.cfg | 3 |
3 files changed, 11 insertions, 0 deletions
@@ -1,2 +1,3 @@ *.bin +boot.iso *.o @@ -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 $@ diff --git a/grub.cfg b/grub.cfg new file mode 100644 index 0000000..ab0a41d --- /dev/null +++ b/grub.cfg @@ -0,0 +1,3 @@ +menuentry "Camellia" { + multiboot /boot/kernel.bin +} |