From 6638df9adb455ccdedd3eebc1efd7962b742588f Mon Sep 17 00:00:00 2001 From: natrixaeria Date: Thu, 24 Oct 2019 18:30:08 +0200 Subject: Adapt build script to new file system --- kernel/build.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/kernel/build.sh b/kernel/build.sh index 4f25a2e..530c253 100755 --- a/kernel/build.sh +++ b/kernel/build.sh @@ -1,10 +1,11 @@ #!/usr/bin/sh -ASM_PATH="./" +ASM_PATH="src/" TARGET_PATH="target/" TMP_PATH="$TARGET_PATH/temp/" OBJ_PATH="$TMP_PATH" -LINK_SCRIPT_PATH="./" +LINK_SCRIPT_PATH="src/" +GRUB_CFG_PATH="src/grub.cfg" remove_target() { rm -rf $TARGET_PATH &> /dev/null @@ -31,7 +32,12 @@ build_kernel_elf() { build_kernel_iso_from_elf() { create_target - echo NIY: build kernel from elf + mkdir $TMP_PATH/isofiles &> /dev/null + mkdir $TMP_PATH/isofiles/boot &> /dev/null + mkdir $TMP_PATH/isofiles/boot/grub &> /dev/null + cp $TARGET_PATH/kernel.bin $TMP_PATH/isofiles/boot &> /dev/null + cp $GRUB_CFG_PATH $TMP_PATH/isofiles/boot/grub/grub.cfg &> /dev/null + grub-mkrescue -d /usr/lib/grub/i386-pc -o $TARGET_PATH/uff.iso $TMP_PATH/isofiles } build_kernel_iso() { -- cgit v1.2.3-70-g09d2