Skip to content

Commit

Permalink
Kbuild: standalone: do not ignore platform-specific OBJCOPYFLAGS
Browse files Browse the repository at this point in the history
Currently the OBJCOPYFLAGS are cleared when assigning "-O srec"
or "-O binary" for standalone programs. All flags set by arch-specific
Makefiles are lost. This is bad if an arch demands arch-specific
flags for the objcopy step.

Signed-off-by: Daniel Schwierzeck <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
  • Loading branch information
danielschwierzeck committed Nov 18, 2018
1 parent 1d3b97c commit d3a9ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/standalone/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ quiet_cmd_link_elf = LD $@
$(ELF): $(obj)/%: $(obj)/%.o $(LIB) FORCE
$(call if_changed,link_elf)

$(obj)/%.srec: OBJCOPYFLAGS := -O srec
$(obj)/%.srec: OBJCOPYFLAGS += -O srec
$(obj)/%.srec: $(obj)/% FORCE
$(call if_changed,objcopy)

$(obj)/%.bin: OBJCOPYFLAGS := -O binary
$(obj)/%.bin: OBJCOPYFLAGS += -O binary
$(obj)/%.bin: $(obj)/% FORCE
$(call if_changed,objcopy)

Expand Down

0 comments on commit d3a9ba7

Please sign in to comment.