From: Angus Gratton Date: Tue, 22 Nov 2016 21:49:15 +0000 (+1100) Subject: build system: Fix null-terminating of text files for embedding on OS X X-Git-Tag: v1.0~32^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ac7810480c77af66963c047dee3997d8101bc6e;p=esp-idf build system: Fix null-terminating of text files for embedding on OS X Ref github #112 --- diff --git a/make/component_wrapper.mk b/make/component_wrapper.mk index 3018c18b55..48bf0ecace 100644 --- a/make/component_wrapper.mk +++ b/make/component_wrapper.mk @@ -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