aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-10-03 11:58:02 +0200
committerWojtek Kosior <kwojtus@protonmail.com>2019-10-03 11:58:02 +0200
commit47c327eac36e78793173496f18b56f0f2159d648 (patch)
treed7df75f7d5763ed106acdaf4f7c9c9302c5e6ab4
parent4e7666742e6089e7f0ff359c42f726acde7e2a0c (diff)
downloadrpi-MMU-example-47c327eac36e78793173496f18b56f0f2159d648.tar.gz
rpi-MMU-example-47c327eac36e78793173496f18b56f0f2159d648.zip
don't delete binary, dd overwrites it anyway; place comment about padding removal
-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