diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-04-19 10:28:12 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-05-03 15:01:28 +0200 |
commit | 33241e6f97e21c983fc0ec13b88afa65b3ca0f20 (patch) | |
tree | ef88636490c89b90cf01d9d5dd1515c0cdda28c7 /Makefile | |
parent | 76da3708c8ecfe501db12b73d49ddb2bc8f60c6b (diff) | |
download | barebox-33241e6f97e21c983fc0ec13b88afa65b3ca0f20.tar.gz barebox-33241e6f97e21c983fc0ec13b88afa65b3ca0f20.tar.xz |
give nice output when generating barebox.bin and barebox.S
As a side effect don't build barebox.S when barebox.bin is updated. I
didn't manage to keep the old behaviour and I consider it cleaner this
way.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -641,9 +641,16 @@ define rule_barebox-modpost $(Q)echo 'cmd_$@ := $(cmd_barebox-modpost)' > $(dot-target).cmd endef -barebox.bin: barebox - $(Q)$(OBJCOPY) -O binary barebox barebox.bin +quiet_cmd_objcopy = OBJCOPY $@ + cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@ + +OBJCOPYFLAGS_barebox.bin = -O binary + +barebox.bin: barebox FORCE + $(call if_changed,objcopy) + ifdef CONFIG_X86 +barebox.S: barebox ifdef CONFIG_X86_HDBOOT @echo "-------------------------------------------------" > barebox.S @echo " * MBR content" >> barebox.S @@ -665,7 +672,11 @@ endif @echo " * Init Calls content" >> barebox.S $(Q)$(OBJDUMP) -j .barebox_initcalls -d barebox >> barebox.S else - $(Q)$(OBJDUMP) -d barebox > barebox.S +quiet_cmd_disasm = DISASM $@ + cmd_disasm = $(OBJDUMP) -d $< > $@ + +barebox.S: barebox FORCE + $(call if_changed,disasm) endif # barebox image |