Can generate iso image
This commit is contained in:
parent
c1afe927cb
commit
84d421a014
11
Makefile
11
Makefile
@ -19,9 +19,14 @@ deps = $(csrc:%.c=%.d)
|
||||
kernel:$(asmobj) $(cobj) linker.ld
|
||||
$(CC) -m32 -ffreestanding -nostdlib $(cobj) $(asmobj) -o $@ -T linker.ld
|
||||
|
||||
fd.img: kernel
|
||||
dd if=/dev/zero of=$@ bs=512 count=2880
|
||||
dd if=$< of=$@ conv=notrunc
|
||||
|
||||
|
||||
fd.iso: kernel
|
||||
mkdir -p isodir/boot/grub
|
||||
cp $< isodir/boot/grub/
|
||||
@echo -e "menuentry \"myos\" {\n\tmultiboot /boot/kernel\n}" > isodir/boot/grub/grub.cfg
|
||||
grub-mkrescue -o $@ isodir
|
||||
|
||||
|
||||
#https://gcc.gnu.org/onlinedocs/gcc/x86-Function-Attributes.html#x86-Function-Attributes
|
||||
core/exception_handler.o:core/exception_handler.c
|
||||
|
Loading…
Reference in New Issue
Block a user