tar_file_read
This commit is contained in:
@@ -43,14 +43,13 @@ limine/limine:
|
||||
git clone https://github.com/limine-bootloader/limine.git --branch=v9.x-binary --depth=1
|
||||
$(MAKE) -C limine
|
||||
|
||||
build-iso: limine/limine $(ELFFILE)
|
||||
build-iso: limine/limine $(ELFFILE) initfs
|
||||
rm -rf iso_root
|
||||
mkdir -p iso_root/boot
|
||||
cp -v $(ELFFILE) iso_root/boot
|
||||
mkdir -p iso_root/boot/limine
|
||||
cp -v limine.conf iso_root/boot/limine
|
||||
cp $(BUILDDIR)/hello iso_root/boot/
|
||||
cp $(BUILDDIR)/pedicel iso_root/boot/
|
||||
cp calyx.tar iso_root/boot/
|
||||
mkdir -p iso_root/EFI/BOOT
|
||||
cp -v limine/limine-bios.sys limine/limine-bios-cd.bin limine/limine-uefi-cd.bin iso_root/boot/limine/
|
||||
cp -v limine/BOOTX64.EFI iso_root/EFI/BOOT/
|
||||
@@ -62,6 +61,12 @@ build-iso: limine/limine $(ELFFILE)
|
||||
iso_root -o pepper.iso
|
||||
./limine/limine bios-install pepper.iso
|
||||
|
||||
.PHONY: initfs
|
||||
initfs:
|
||||
cp $(BUILDDIR)/hello calyx/
|
||||
cp $(BUILDDIR)/pedicel calyx/
|
||||
tar cvf calyx.tar -C ./calyx .
|
||||
|
||||
.PHONY: debug
|
||||
debug:
|
||||
/usr/bin/qemu-system-x86_64 -drive file=pepper.iso -s -S -d int -D qemu.log -no-reboot -no-shutdown &
|
||||
@@ -78,4 +83,4 @@ run: build-iso
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(BUILDDIR) symbols.map symbols.S $(ELFFILE) iso_root pepper.iso limine
|
||||
rm -rf $(BUILDDIR) symbols.map symbols.S $(ELFFILE) iso_root pepper.iso limine calyx.tar
|
||||
|
||||
Reference in New Issue
Block a user