2019-07-03 18:12:57 +02:00
|
|
|
# grub config file
|
|
|
|
mkdir -p iso_root/boot/grub/
|
2019-07-03 21:04:05 +02:00
|
|
|
cat > iso_root/boot/grub/grub.cfg << EOF
|
2019-07-03 18:12:57 +02:00
|
|
|
set timeout = 0
|
|
|
|
set default = 0
|
|
|
|
|
|
|
|
menuentry "iceOS" {
|
|
|
|
multiboot2 /boot/kernel.elf
|
|
|
|
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/
|
|
|
|
|
|
|
|
i686-elf-ld -melf_i386 -nostdlib -O2 -T link.ld -o iso_root/boot/kernel.elf obj/*.o
|