diff --git a/images/Makefile b/images/Makefile index 41509aa..c4b2a48 100644 --- a/images/Makefile +++ b/images/Makefile @@ -43,7 +43,9 @@ # quiet_cmd_objcopy_bin = OBJCOPYB $@ - cmd_objcopy_bin = $(OBJCOPY) -O binary $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@ + cmd_objcopy_bin = \ + $(OBJCOPY) -O binary $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@ && \ + $(objtree)/scripts/fix_size -f $@ pbl-lds := $(obj)/pbl.lds extra-y += $(pbl-lds) @@ -59,14 +61,11 @@ PBL_CPPFLAGS += -fdata-sections -ffunction-sections -piggy_o := piggy.$(suffix_y).o - $(obj)/%.pbl: $(pbl-lds) $(barebox-pbl-common) $(obj)/piggy.o FORCE $(call if_changed,elf__,$(*F)) $(obj)/%.pblb: $(obj)/%.pbl FORCE $(call if_changed,objcopy_bin,$(*F)) - $(Q)$(objtree)/scripts/fix_size -f $@ $(obj)/%.s: $(obj)/% FORCE $(call if_changed,disasm) @@ -106,7 +105,7 @@ include $(srctree)/images/Makefile.vexpress include $(srctree)/images/Makefile.at91 -targets += $(image-y) pbl.lds barebox.x barebox.z +targets += $(image-y) pbl.lds barebox.x barebox.z piggy.o targets += $(patsubst %,%.pblb,$(pblb-y)) targets += $(patsubst %,%.pbl,$(pblb-y)) targets += $(patsubst %,%.s,$(pblb-y))