diff --git a/Makefile b/Makefile
index 97db4dd251106faea2adce34d1b43e81f3bf39bb..7ab167684642f4f3ac371279ce7a0719025549c8 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 ?= ca194f3c597b3ebba9ceb032f13f1a4e7ffa5653
+SYSFW_GIT_HASH ?= 6a07e130e7dac6b49c9e516ffc84e33a68155260
# 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)