réplica de
https://github.com/Arnau478/quark.git
synced 2024-11-23 12:58:07 +01:00
GRUB-bootable ISO
This commit is contained in:
pare
dc4866b518
commit
bb9de64c6d
S'han modificat 4 arxius amb 12 adicions i 2 eliminacions
3
Makefile
3
Makefile
|
@ -1,10 +1,11 @@
|
|||
.PHONY: quark
|
||||
quark: build-dir kernel
|
||||
quark: build-dir kernel iso
|
||||
|
||||
include config/.conf
|
||||
include scripts/toolchain.mk
|
||||
include scripts/kernel.mk
|
||||
include scripts/run.mk
|
||||
include scripts/iso.mk
|
||||
|
||||
.PHONY: build-dir
|
||||
build-dir:
|
||||
|
|
3
config/grub.cfg
Normal file
3
config/grub.cfg
Normal file
|
@ -0,0 +1,3 @@
|
|||
menuentry "Quark" {
|
||||
multiboot /boot/kernel.bin
|
||||
}
|
6
scripts/iso.mk
Normal file
6
scripts/iso.mk
Normal file
|
@ -0,0 +1,6 @@
|
|||
.PHONY: iso
|
||||
iso:
|
||||
@mkdir -p build/iso/boot/grub
|
||||
@cp build/kernel.bin build/iso/boot/kernel.bin
|
||||
@cp config/grub.cfg build/iso/boot/grub/grub.cfg
|
||||
@grub-mkrescue -o build/quark.iso build/iso
|
|
@ -4,5 +4,5 @@ run: quark run-qemu
|
|||
.PHONY: run-qemu
|
||||
run-qemu:
|
||||
@echo -e $(ARROW) "Running on qemu..."
|
||||
@qemu-system-i386 -kernel $(BUILD_DIR)/kernel.bin
|
||||
@qemu-system-i386 $(BUILD_DIR)/quark.iso
|
||||
@echo -e $(ARROW) "Finished run"
|
||||
|
|
Loading…
Referencia en una nova incidència