move iso files to sysroot

This commit is contained in:
pjht 2019-08-26 13:32:19 -05:00
parent 0b42b86eba
commit 4fadffc59a
3 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View File

@ -11,5 +11,5 @@ init/init
vfs/vfs
fsdrv/fsdrv
initrd/*
iso/boot/initrd.tar
sysroot/boot/initrd.tar
serout

View File

@ -31,9 +31,9 @@ debug: os.iso kernel/kernel.elf
#gdbgui -g i386-elf-gdb --project $(CWD)
os.iso: kernel/kernel.elf init vfs fsdrv initrd
@cp kernel/kernel.elf iso/boot
@cd initrd; tar -f ../iso/boot/initrd.tar -c *
@grub-mkrescue -o $@ iso >/dev/null 2>/dev/null
@cp kernel/kernel.elf sysroot/boot
@cd initrd; tar -f ../sysroot/boot/initrd.tar -c *
@grub-mkrescue -o $@ sysroot >/dev/null 2>/dev/null
init: init/* kernel/start.o
@cd $@ && make
@ -64,4 +64,4 @@ libc/libc.a: $(LIBC_OBJ)
@$(AS) $< -o $@
clean:
@rm -rf initrd/* kernel/*.o drivers/*/*.o drivers/*/*/*.o cpu/*/*.o fs/*.o libc/libc.a kernel/cstart.o cpu/memory.h os.iso */*.elf iso/boot/initrd.tar
@rm -rf initrd/* kernel/*.o drivers/*/*.o drivers/*/*/*.o cpu/*/*.o fs/*.o libc/libc.a kernel/cstart.o cpu/memory.h os.iso */*.elf sysroot/boot/initrd.tar