Add: TAR init ramdisk via GRUB2 module
This commit is contained in:
6
makefile
6
makefile
@@ -49,12 +49,16 @@ toolchain:
|
||||
wget $(TOOLCHAIN_SRC)
|
||||
tar xf $(TOOLCHAIN_FILE)
|
||||
|
||||
iso: kernel.elf
|
||||
iso: kernel.elf initrd
|
||||
mkdir -p iso/boot/grub
|
||||
cp kernel.elf iso/boot/kernel.elf
|
||||
cp grub.cfg iso/boot/grub/grub.cfg
|
||||
grub-mkrescue iso -o blankos.iso
|
||||
|
||||
initrd:
|
||||
tar -cf $(OBJ_DIR)/initrd.tar -C $(SRC_DIR)/initrd .
|
||||
cp $(OBJ_DIR)/initrd.tar iso/boot
|
||||
|
||||
run: iso
|
||||
qemu-system-i386 -drive file=blankos.iso,format=raw
|
||||
|
||||
|
||||
Reference in New Issue
Block a user