m3dev

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9acdfb969ea7c0e8d46330cb29dfc2d24756eaf4
parent 7aaad82eb0d3f6b89b3ad9567b068211f329c407
Author: Brian Swetland <swetland@frotz.net>
Date:   Wed, 19 Mar 2014 02:55:47 -0700

build: allow target modules to be signed/blessed as a final step

Diffstat:
Mbuild/target-executable.mk | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/build/target-executable.mk b/build/target-executable.mk @@ -94,9 +94,11 @@ $(M_CONFIG_H): Makefile $(M_MAKEFILE) $(CHIP_$(M_CHIP)_DEPS) @echo generate $@ @$(call make-config-header,$@,$(_CFG)) -$(M_OUT_BIN): $(M_OUT_ELF) +$(M_OUT_BIN): _SIGN := $(if $(M_SIGN),$(M_SIGN),true) +$(M_OUT_BIN): $(M_OUT_ELF) $(M_SIGN) @echo create $@ - $(QUIET)$(TARGET_OBJCOPY) --gap-fill=0xee -O binary $< $@ + $(QUIET)$(TARGET_OBJCOPY) --gap-fill=0xee -O binary $< $@.tmp + $(QUIET)$(_SIGN) $@.tmp && mv $@.tmp $@ $(M_OUT_LST): $(M_OUT_ELF) @echo create $@ @@ -117,3 +119,4 @@ M_BASE := M_LIBS := M_CFLAGS := M_CONFIG := +M_SIGN :=