summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlek Du <alek.du@intel.com>2008-05-15 09:12:13 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 20:22:36 -0700
commitc5df68e829342999797f262770e45d2fac6a3b5c (patch)
tree47a1e78813b564eff1e8740511b3dd560eb310bd /Makefile
parentbb88522177746c4d357ec88686e602752cb7f00e (diff)
downloadbootstub-c5df68e829342999797f262770e45d2fac6a3b5c.tar.gz
* Let Makefile pad zero to 4096
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 572cffa..e296897 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
OBJ=bootstub.o head.o
-all: bootstub.bin
+all: bootstub
+
+bootstub:bootstub.bin
+ cat bootstub.bin /dev/zero | dd bs=4096 count=1 > $@
bootstub.bin:bootstub.elf
objcopy -O binary -R .note -R .comment -S $< $@