diff --git a/Makefile b/Makefile
index a442e0314221010080253b61f8240adc1a561eb5..f39d0b5880eaa7f762a07b07c75762a6bb88a994 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 ?= 94a06ceb66aa821b293e8b903f6b65346d33328d
+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)
-Isoc/${SOC}/${CONFIG} \
-Iinclude
+ifdef ENABLE_TRACE
+CFLAGS += -DENABLE_TRACE
+endif
SOURCES ?= \
board-cfg.c \
$(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)