Separated run-grub and iso making
Now no need to rebuild iso if main binary wasn't changed
This commit is contained in:
parent
79ed6ccff2
commit
edf0613390
|
@ -61,7 +61,7 @@ clean:
|
||||||
run:
|
run:
|
||||||
qemu-system-$(ARCH) -kernel $(KERNELFILE) -serial stdio -S -s
|
qemu-system-$(ARCH) -kernel $(KERNELFILE) -serial stdio -S -s
|
||||||
|
|
||||||
run-grub:
|
$(ISOFILE): $(KERNELFILE)
|
||||||
mkdir -p $(BUILDDIR)/isodir
|
mkdir -p $(BUILDDIR)/isodir
|
||||||
mkdir -p $(BUILDDIR)/isodir/boot
|
mkdir -p $(BUILDDIR)/isodir/boot
|
||||||
mkdir -p $(BUILDDIR)/isodir/boot/grub
|
mkdir -p $(BUILDDIR)/isodir/boot/grub
|
||||||
|
@ -73,5 +73,9 @@ run-grub:
|
||||||
echo '}' >> $(BUILDDIR)/isodir/boot/grub/grub.cfg
|
echo '}' >> $(BUILDDIR)/isodir/boot/grub/grub.cfg
|
||||||
|
|
||||||
grub-mkrescue -o $(ISOFILE) $(BUILDDIR)/isodir
|
grub-mkrescue -o $(ISOFILE) $(BUILDDIR)/isodir
|
||||||
|
|
||||||
|
iso: $(ISOFILE)
|
||||||
|
|
||||||
|
run-grub: iso
|
||||||
qemu-system-$(ARCH) -cdrom $(BUILDDIR)/orion.iso -serial stdio -S -s
|
qemu-system-$(ARCH) -cdrom $(BUILDDIR)/orion.iso -serial stdio -S -s
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue