diff --git a/Makefile b/Makefile
index 1d9e5f1cef996a216b1a721c578f3f1e19186ede..47b65ec1f95d1543c785876893ae665df5a546e4 100644 (file)
--- a/Makefile
+++ b/Makefile
SYSFW_HS_CERTS_PATH ?= ti-sci-firmware-${SOC}-hs-certs.bin
# Must use FULL Git hash below, as it is used as part of an URL for direct DL
-SYSFW_GIT_HASH ?= 2b292f87e7257d4f9103d4e862a7b1769b13fed7
+SYSFW_GIT_HASH ?= a692931eba713a099ed9ae41ef4a4f7ba145a706
# URL to download SYSFW release binary from if not provided otherwise
SYSFW_DL_URL ?= https://git.ti.com/processor-firmware/ti-linux-firmware/blobs/raw/$(SYSFW_GIT_HASH)/ti-sysfw/$(SYSFW_PATH)
$(soc_objroot)/%.o: %.c
$(CROSS_COMPILE)gcc $(CFLAGS) -c -o $@ $<
+# On HS board configuration binaries must be signed
+ifdef HS
+%.bin.unsigned: %.o
+ $(CROSS_COMPILE)objcopy -S -O binary $< $@
+%.bin: %.bin.unsigned
+ $(TI_SECURE_DEV_PKG)/scripts/secure-binary-image.sh $< $@
+else
%.bin: %.o
$(CROSS_COMPILE)objcopy -S -O binary $< $@
-
+endif
.PHONY: sysfw_version
sysfw_version: $(SYSFW_PATH)