2019-07-03 18:12:57 +02:00
|
|
|
# grub config file
|
2019-07-04 01:58:34 +02:00
|
|
|
mkdir -p isodir/boot/grub/
|
|
|
|
cat > isodir/boot/grub/grub.cfg << EOF
|
2019-07-03 18:12:57 +02:00
|
|
|
set timeout = 0
|
|
|
|
set default = 0
|
|
|
|
|
|
|
|
menuentry "iceOS" {
|
2019-07-04 01:58:34 +02:00
|
|
|
multiboot2 /boot/iceOS.bin
|
2019-07-03 18:12:57 +02:00
|
|
|
boot
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# CPU
|
|
|
|
mkdir -p obj/
|
|
|
|
make -C kernel/cpu
|
2019-07-03 21:04:05 +02:00
|
|
|
cp kernel/cpu/*.o obj/
|
2019-07-03 18:12:57 +02:00
|
|
|
|
|
|
|
# Kernel
|
2019-07-03 21:04:05 +02:00
|
|
|
make -C kernel
|
2019-07-03 18:12:57 +02:00
|
|
|
cp kernel/*.o obj/
|
|
|
|
|
|
|
|
# Drivers
|
|
|
|
make -C kernel/drivers/
|
|
|
|
cp kernel/drivers/*.o obj/
|
|
|
|
|
|
|
|
# Libc
|
|
|
|
make -C kernel/libc
|
|
|
|
cp kernel/libc/*.o obj/
|
|
|
|
|
2019-07-08 18:43:45 +02:00
|
|
|
# Shell
|
|
|
|
make -C kernel/shell
|
|
|
|
cp kernel/shell/*.o obj/
|
|
|
|
|
2019-07-04 01:58:34 +02:00
|
|
|
# Linking
|
|
|
|
i686-elf-ld -melf_i386 -nostdlib -O2 -T link.ld -o isodir/boot/iceOS.bin obj/*.o
|
|
|
|
|
|
|
|
# ISO
|
|
|
|
make iso
|