Skip to content

Commit

Permalink
build system: Fix null-terminating of text files for embedding on OS X
Browse files Browse the repository at this point in the history
Ref github #112
  • Loading branch information
projectgus committed Nov 22, 2016
1 parent d467eab commit 5ac7810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make/component_wrapper.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ac7810

Please sign in to comment.