Working i386 paging and liballoc
This commit is contained in:
23
platform/make.i386_pc
Normal file
23
platform/make.i386_pc
Normal file
@ -0,0 +1,23 @@
|
||||
$(srctree)/out/i386_pc/mop3.iso: $(srctree)/out/kernel.elf
|
||||
rm -rf $(srctree)/out/i386_pc/tmp
|
||||
mkdir -p $(srctree)/out/i386_pc/tmp
|
||||
mkdir -p $(srctree)/out/i386_pc/tmp/iso/boot/grub
|
||||
cp $(srctree)/out/kernel.elf $(srctree)/out/i386_pc/tmp/iso/boot
|
||||
cp $(srctree)/platform/i386_pc/grub.cfg $(srctree)/out/i386_pc/tmp/iso/boot/grub
|
||||
grub-mkrescue -o $(srctree)/out/i386_pc/mop3.iso $(srctree)/out/i386_pc/tmp/iso
|
||||
|
||||
QEMU_EXTRA ?=
|
||||
|
||||
QEMU_OPTS := -M pc \
|
||||
-cdrom $(srctree)/out/i386_pc/mop3.iso \
|
||||
-serial mon:stdio \
|
||||
$(QEMU_EXTRA)
|
||||
|
||||
ifeq ($(debug),1)
|
||||
QEMU_OPTS += -gdb tcp::5557 -S
|
||||
endif
|
||||
|
||||
i386_pc_qemu: $(srctree)/out/i386_pc/mop3.iso
|
||||
qemu-system-i386 $(QEMU_OPTS)
|
||||
|
||||
.PHONY: i386_pc_qemu
|
||||
Reference in New Issue
Block a user