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