diff options
author | Andrew Davis | 2022-07-15 11:38:54 -0500 |
---|---|---|
committer | Tom Rini | 2022-07-25 14:57:27 -0400 |
commit | 121596a98fea008d15b052879239f2d2b0e16f6b (patch) | |
tree | 02563863f7a2120cb6f0df848d0bd623bc095323 /arch | |
parent | 00194272519855ad26b7d5de2fd0419cf2963942 (diff) |
arm: k3: config.mk: Read software revision information from file on HS
Read the swrv.txt file from the TI Security Development Tools when
TI_SECURE_DEVICE is enabled. This allows us to set our software
revision in one place and have it used by all the tools that create
TI x509 boot certificates.
Signed-off-by: Andrew Davis <afd@ti.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-k3/config.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/config.mk b/arch/arm/mach-k3/config.mk index 4feb57992d1..9306f2627d9 100644 --- a/arch/arm/mach-k3/config.mk +++ b/arch/arm/mach-k3/config.mk @@ -30,6 +30,14 @@ endif # X509 SWRV default SWRV = $(CONFIG_K3_X509_SWRV) +# On HS use SECDEV provided software revision or warn if not available +ifeq ($(CONFIG_TI_SECURE_DEVICE),y) +ifneq ($(wildcard $(TI_SECURE_DEV_PKG)/keys/swrv.txt),) +SWRV= $(shell cat $(TI_SECURE_DEV_PKG)/keys/swrv.txt) +else +$(warning "WARNING: Software revision file not found. Default may not work on HS hardware.") +endif +endif # tiboot3.bin is mandated by ROM and ROM only supports R5 boot. # So restrict tiboot3.bin creation for CPU_V7R. |