improve makefile to work with buildroot iso
This commit is contained in:
@@ -4,3 +4,4 @@ boot.iso
|
||||
.vscode/
|
||||
cross-compiler-i686/
|
||||
buildroot-2025.08/
|
||||
rootfs.iso9660
|
||||
|
||||
@@ -52,8 +52,15 @@ image:
|
||||
sudo losetup -D
|
||||
|
||||
iso:
|
||||
mkdir tmp
|
||||
mkdir katauos
|
||||
sudo mount rootfs.iso9660 tmp/
|
||||
cp -R tmp/* katauos/
|
||||
cp katauos.bin grubshit/boot
|
||||
grub-mkrescue -o boot.iso grubshit/
|
||||
cp katauos.bin katauos/boot/
|
||||
cp grubshit/boot/grub/grub.cfg katauos/boot/grub/grub.cfg
|
||||
sudo umount tmp/
|
||||
grub-mkrescue -o boot.iso katauos/
|
||||
|
||||
test-cdrom:
|
||||
qemu-system-i386 -cdrom boot.iso -m 4096M -d int
|
||||
|
||||
Reference in New Issue
Block a user