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@xxxxxxxxxxxxxx> --- Makefile | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0c00829..5b5c2e8 100644 --- a/Makefile +++ b/Makefile @@ -641,9 +641,18 @@ define rule_barebox-modpost $(Q)echo 'cmd_$@ := $(cmd_barebox-modpost)' > $(dot-target).cmd endef -barebox.bin: barebox - $(Q)$(OBJCOPY) -O binary barebox barebox.bin - $(Q)$(OBJDUMP) -d barebox > barebox.S +quiet_cmd_objcopy = OBJCOPY $@ + cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@ + +OBJCOPYFLAGS_barebox.bin = -O binary +barebox.bin: barebox FORCE + $(call if_changed,objcopy) +#$(Q)$(OBJCOPY) -O binary barebox barebox.bin + +quiet_cmd_disasm = DISASM $@ + cmd_disasm = $(OBJDUMP) -d $< > $@ +barebox.S: barebox FORCE + $(call if_changed,disasm) # barebox image barebox: $(barebox-lds) $(barebox-head) $(barebox-common) $(kallsyms.o) FORCE -- 1.6.6 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox