Added GRUB to makefile

pull/22/head
E. Almqvist 3 years ago
parent 11607b18e8
commit 3c0e245947
  1. 12
      Makefile
  2. 3
      boot/grub/grub.cfg
  3. BIN
      eOS.iso

@ -3,6 +3,15 @@ all: os-image
run: all
qemu-system-x86_64 os-image
grub: eOS.iso
qemu-system-x86_64 eOS.iso
eOS.iso : kernel.bin src/grub/grub.cfg
mkdir -p boot/grub
cp $< boot/eOS.bin
cp src/grub/grub.cfg boot/grub/grub.cfg
grub-mkrescue -o eOS.iso ./
os-image: bootloader.bin kernel.bin
cat $^ > os-image
@ -19,7 +28,8 @@ bootloader.bin : src/bootloader/bootloader.asm
nasm $< -f bin -o $@
clean:
rm -fr *.bin *.dis *.o os-image *.map
rm -fr *.bin *.dis *.o os-image *.map boot/
kernel.dis : kernel.bin
ndisasm -b 32 $< > $@

@ -0,0 +1,3 @@
menuentry "eOS" {
multiboot /boot/eOS.bin
}

Binary file not shown.
Loading…
Cancel
Save