build system: Use correct objcopy arguments for object format

Avoid ambiguous argument error on some platforms

Ref internal discussion !198

squash! build system: Use correct objcopy --input-target argument not --input
This commit is contained in:
Angus Gratton 2016-11-16 18:03:55 +11:00
parent 872a481cf1
commit 12dd886ee1

View File

@ -180,7 +180,7 @@ $(foreach srcdir,$(COMPONENT_SRCDIRS), $(eval $(call GenerateCompileTargets,$(sr
## Support for embedding binary files into the ELF as symbols ## Support for embedding binary files into the ELF as symbols
OBJCOPY_EMBED_ARGS := --input binary --output elf32-xtensa-le --binary-architecture xtensa --rename-section .data=.rodata.embedded OBJCOPY_EMBED_ARGS := --input-target binary --output-target elf32-xtensa-le --binary-architecture xtensa --rename-section .data=.rodata.embedded
# Generate pattern for embedding text or binary files into the app # Generate pattern for embedding text or binary files into the app
# $(1) is name of file (as relative path inside component) # $(1) is name of file (as relative path inside component)