From 47c327eac36e78793173496f18b56f0f2159d648 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 3 Oct 2019 11:58:02 +0200 Subject: don't delete binary, dd overwrites it anyway; place comment about padding removal --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3