mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
build system: Fix embedding files which are themselves generated by the
build system Used by secure boot, which generates the secure boot signing key inside build/.
This commit is contained in:
parent
c90e3c7f9e
commit
4eeb2bc41e
@ -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 $$<)
|
||||
|
Loading…
x
Reference in New Issue
Block a user