diff --git a/Makefile b/Makefile
index 79ef3d4c3e400160de287469617ac5e220eccdb4..88a0f4872335eb4ce6ff5e51c281ee91ee2c32d2 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 ?= fc39e69ec83bfb1c577bcb05cefca4da1172f878
+SYSFW_GIT_HASH ?= 2b292f87e7257d4f9103d4e862a7b1769b13fed7
# 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)