]> granicus.if.org Git - esp-idf/commitdiff
build system: Fix embedding files which are themselves generated by the
authorAngus Gratton <angus@espressif.com>
Tue, 15 Nov 2016 23:35:47 +0000 (10:35 +1100)
committerAngus Gratton <angus@espressif.com>
Wed, 16 Nov 2016 22:18:51 +0000 (09:18 +1100)
build system

Used by secure boot, which generates the secure boot signing key inside build/.

make/component_wrapper.mk

index 55a135158ad293b96d27306d8c461dc9864d8aa2..6f903f9fceae549730e453c0c4b1052b08318a51 100644 (file)
@@ -194,7 +194,7 @@ OBJCOPY_EMBED_ARGS := --input binary --output elf32-xtensa-le --binary-architect
 define GenerateEmbedTarget
 $(1).$(2).o: $(call resolvepath,$(1),$(COMPONENT_PATH)) | $$(dir $(1))
        $(summary) EMBED $$@
-       $$(if $$(filter-out $$(notdir $$(abspath $$<)),$$(abspath $$(notdir $$<))), cp $$< $$(notdir $$<) )  # copy input file to build dir, unless already in build dir
+       $(if $(filter-out $$(notdir $$(abspath $$<)),$$(abspath $$(notdir $$<))), cp $$< $$(notdir $$<) )  # copy input file to build dir, unless already in build dir
        $$(if $$(subst bin,,$(2)),echo -ne '\0' >> $$(notdir $$<) )  # trailing NUL byte on text output
        $(OBJCOPY) $(OBJCOPY_EMBED_ARGS) $$(notdir $$<) $$@
        rm $$(notdir $$<)