summaryrefslogtreecommitdiff
path: root/kernel/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/build.sh')
-rwxr-xr-xkernel/build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/build.sh b/kernel/build.sh
index 919951b..14a864f 100755
--- a/kernel/build.sh
+++ b/kernel/build.sh
@@ -24,7 +24,9 @@ cleanup_temp() {
build_kernel_elf() {
create_target
- nasm -felf64 $ASM_PATH/multiboot_header.asm -o $OBJ_PATH/multiboot_header.o
+ for f in $ASM_PATH/*.asm; do
+ nasm -felf64 "$f" -o $OBJ_PATH/"$(basename $f)".o
+ done
nasm -felf64 $ASM_PATH/boot.asm -o $OBJ_PATH/boot.o
ld -n -o $TARGET_PATH/kernel.bin -T $LINK_SCRIPT_PATH/linker.ld $OBJ_PATH/*.o
cleanup_temp