]> granicus.if.org Git - esp-idf/commitdiff
Build system: Fix a bug with embedding binaries in object files
authorAngus Gratton <angus@espressif.com>
Mon, 21 Nov 2016 06:45:28 +0000 (17:45 +1100)
committerAngus Gratton <angus@espressif.com>
Mon, 21 Nov 2016 06:45:28 +0000 (17:45 +1100)
Sometimes paths were generated absolute, need to keep those as-is

make/component_wrapper.mk

index 3018c18b552e7b85ad84b5f65a67c909ac783041..2f492bd183b759da57d92a671799244282d9fa6f 100644 (file)
@@ -204,7 +204,7 @@ embed_txt/$$(notdir $(1)): $(call resolvepath,$(1),$(COMPONENT_PATH)) | embed_tx
 # full path passed to OBJCOPY makes it into the name of the symbols in the .o file
 $(1).$(2).o: embed_$(2)/$$(notdir $(1)) | $$(dir $(1))
        $(summary) EMBED $$@
-       cd embed_$(2); $(OBJCOPY) $(OBJCOPY_EMBED_ARGS) $$(notdir $$<) ../$$@
+       cd embed_$(2); $(OBJCOPY) $(OBJCOPY_EMBED_ARGS) $$(notdir $$<) $$(call resolvepath,$$@,../)
 
 CLEAN_FILES += embed_$(2)/$$(notdir $(1))
 endef