summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkernel/build.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/build.sh b/kernel/build.sh
index 14a864f..4a8130b 100755
--- a/kernel/build.sh
+++ b/kernel/build.sh
@@ -25,9 +25,8 @@ cleanup_temp() {
build_kernel_elf() {
create_target
for f in $ASM_PATH/*.asm; do
- nasm -felf64 "$f" -o $OBJ_PATH/"$(basename $f)".o
+ nasm -felf64 "$f" -o $OBJ_PATH/"$(basename -s .asm $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
}