bootable with small multiboot kernel
git-svn-id: svn://anubis/hos/trunk@5 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
1 parent
bdf4ce8ae8
commit
8f00324b30
4 files changed
+46
-4
No files matched your search
@@ -2,8 +2,9 @@
|
||||
HOS = hos
|
||||
MKISOFS = genisoimage
|
||||
ISO = $(HOS).iso
|
||||
QEMU = qemu-system-x86_64
|
||||
|
||||
.PHONY: kernel iso clean
|
||||
.PHONY: kernel iso clean qemu
|
||||
|
||||
# default target: build the kernel and ISO image
|
||||
all: kernel iso
|
||||
@@ -14,9 +15,13 @@ kernel:
|
||||
|
||||
# build the ISO image
|
||||
iso: kernel
|
||||
cp kernel/$(HOS) iso/boot
|
||||
$(MKISOFS) -R -b boot/grub/stage2_eltorito -no-emul-boot \
|
||||
-boot-load-size 4 -boot-info-table -o $(ISO) iso
|
||||
|
||||
clean:
|
||||
make -C kernel clean
|
||||
-rm -f $(ISO)
|
||||
-rm -f $(ISO) iso/boot/$(HOS)
|
||||
|
||||
qemu:
|
||||
$(QEMU) -cdrom $(ISO) -boot d -m 384 -localtime
|
||||
Reference in new issue
Block a user