aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew F. Davis2019-09-30 10:47:02 -0500
committerAndreas Dannenberg2019-11-04 12:42:53 -0600
commit70257db6e89f9c05ae2e87281b25169f4d356cf1 (patch)
tree1c54387e247cbfd69a1be36158b79f3cd9234090
parent8e6b34ad71b244f055f3d9a0107f6e905dd53e22 (diff)
downloadk3-image-gen-70257db6e89f9c05ae2e87281b25169f4d356cf1.tar.gz
k3-image-gen-70257db6e89f9c05ae2e87281b25169f4d356cf1.tar.xz
k3-image-gen-70257db6e89f9c05ae2e87281b25169f4d356cf1.zip
build: Sign board configuration data on HSti2019.05-rc4ti2019.05-rc3ti2019.05-rc2ti2019.05
Starting with SYSFW v2019.09 it will be required for board config binaries to be signed to ensure trust through authentication. Add this signing step here. Signed-off-by: Andrew F. Davis <afd@ti.com>
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1d9e5f1ce..88a0f4872 100644
--- a/Makefile
+++ b/Makefile
@@ -169,9 +169,16 @@ soc_objs: $(SOC_OBJS)
169$(soc_objroot)/%.o: %.c 169$(soc_objroot)/%.o: %.c
170 $(CROSS_COMPILE)gcc $(CFLAGS) -c -o $@ $< 170 $(CROSS_COMPILE)gcc $(CFLAGS) -c -o $@ $<
171 171
172# On HS board configuration binaries must be signed
173ifdef HS
174%.bin.unsigned: %.o
175 $(CROSS_COMPILE)objcopy -S -O binary $< $@
176%.bin: %.bin.unsigned
177 $(TI_SECURE_DEV_PKG)/scripts/secure-binary-image.sh $< $@
178else
172%.bin: %.o 179%.bin: %.o
173 $(CROSS_COMPILE)objcopy -S -O binary $< $@ 180 $(CROSS_COMPILE)objcopy -S -O binary $< $@
174 181endif
175 182
176.PHONY: sysfw_version 183.PHONY: sysfw_version
177sysfw_version: $(SYSFW_PATH) 184sysfw_version: $(SYSFW_PATH)