]> granicus.if.org Git - esp-idf/commitdiff
build system: Use correct objcopy arguments for object format
authorAngus Gratton <angus@espressif.com>
Wed, 16 Nov 2016 07:03:55 +0000 (18:03 +1100)
committerAngus Gratton <angus@espressif.com>
Thu, 17 Nov 2016 03:32:56 +0000 (14:32 +1100)
Avoid ambiguous argument error on some platforms

Ref internal discussion !198

squash! build system: Use correct objcopy --input-target argument not --input

make/component_wrapper.mk

index 2c073af761f9c3652137e17f932000a9d5da2134..3018c18b552e7b85ad84b5f65a67c909ac783041 100644 (file)
@@ -180,7 +180,7 @@ $(foreach srcdir,$(COMPONENT_SRCDIRS), $(eval $(call GenerateCompileTargets,$(sr
 
 ## 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
 # $(1) is name of file (as relative path inside component)