]> granicus.if.org Git - esp-idf/commitdiff
build system: Fix null-terminating of text files for embedding on OS X
authorAngus Gratton <angus@espressif.com>
Tue, 22 Nov 2016 21:49:15 +0000 (08:49 +1100)
committerAngus Gratton <angus@espressif.com>
Tue, 22 Nov 2016 21:49:15 +0000 (08:49 +1100)
Ref github #112

make/component_wrapper.mk

index 3018c18b552e7b85ad84b5f65a67c909ac783041..48bf0ecace1c3e72319c63934261bd31380a472b 100644 (file)
@@ -198,7 +198,7 @@ embed_bin/$$(notdir $(1)): $(call resolvepath,$(1),$(COMPONENT_PATH)) | embed_bi
 
 embed_txt/$$(notdir $(1)): $(call resolvepath,$(1),$(COMPONENT_PATH)) | embed_txt
        cp $$< $$@
-       echo -ne '\0' >> $$@  # null-terminate text files
+       printf '\0' >> $$@  # null-terminate text files
 
 # messing about with the embed_X subdirectory then using 'cd' for objcopy is because the
 # full path passed to OBJCOPY makes it into the name of the symbols in the .o file