diff options
author | Andrew F. Davis | 2019-09-30 10:47:02 -0500 |
---|---|---|
committer | Andreas Dannenberg | 2019-11-04 12:42:53 -0600 |
commit | 70257db6e89f9c05ae2e87281b25169f4d356cf1 (patch) | |
tree | 1c54387e247cbfd69a1be36158b79f3cd9234090 | |
parent | 8e6b34ad71b244f055f3d9a0107f6e905dd53e22 (diff) | |
download | k3-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-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 | ||
173 | ifdef 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 $< $@ | ||
178 | else | ||
172 | %.bin: %.o | 179 | %.bin: %.o |
173 | $(CROSS_COMPILE)objcopy -S -O binary $< $@ | 180 | $(CROSS_COMPILE)objcopy -S -O binary $< $@ |
174 | 181 | endif | |
175 | 182 | ||
176 | .PHONY: sysfw_version | 183 | .PHONY: sysfw_version |
177 | sysfw_version: $(SYSFW_PATH) | 184 | sysfw_version: $(SYSFW_PATH) |