]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-firmware/system-firmware-image-gen.git/blobdiff - Makefile
include: j721e: am65x: Add new types and subtypes from SYSFW 2019.12
[processor-firmware/system-firmware-image-gen.git] / Makefile
index 9ad08a6976b59086bf3772dae1ef0560de409a80..f39d0b5880eaa7f762a07b07c75762a6bb88a994 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -65,7 +65,7 @@ SYSFW_HS_INNER_CERT_PATH ?= ti-sci-firmware-${SOC}-hs-cert.bin
 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 ?= 3f7c97c9f923f6fbf1b96dcae1da8620a3bab0b3
+SYSFW_GIT_HASH ?= 299211f4ed0641f4653d0b7b69ff5a85c42a0268
 
 # 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)
@@ -169,9 +169,16 @@ soc_objs: $(SOC_OBJS)
 $(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)