summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 764f7f0..7a1b5cf 100644
--- a/Makefile
+++ b/Makefile
@@ -90,9 +90,12 @@ out/libm.a:
@mkdir -p $(@D)
@$(AR) rcs $@ $^
-out/bootstrap: src/user/bootstrap/linker.ld $(call from_sources, src/user/bootstrap/) out/libc.a
+out/bootstrap: out/bootstrap.elf
+ @objcopy -O binary $^ $@
+
+out/bootstrap.elf: src/user/bootstrap/linker.ld $(call from_sources, src/user/bootstrap/) out/libc.a
@mkdir -p $(@D)
- @$(CC) -nostdlib -Wl,-no-pie -Wl,-Map=% -T $^ -o $@
+ @$(CC) -nostdlib -Wl,-no-pie -T $^ -o $@
out/fs/boot/init: out/bootstrap out/initrd.tar
@mkdir -p $(@D)