aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e465085..2e2f062 100644
--- a/Makefile
+++ b/Makefile
@@ -9,12 +9,11 @@ boot.o : boot.S
kernel.elf : boot.o kernel.o
arm-none-eabi-gcc -T linker.ld -o $@ -ffreestanding -O2 -nostdlib boot.o kernel.o -lgcc
+# objcopy pads 0x0000 to 0x8000 with zeros, we get rid of them in the next recipe
kernel_padded.img : kernel.elf
arm-none-eabi-objcopy $^ -O binary $@
-# objcopy pads 0x0000 to 0x8000 with zeros, we need to get rid of them
kernel7.img : kernel_padded.img
- -rm $@
dd bs=4096 skip=8 if=$^ of=$@
qemu-elf : kernel.elf