aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-k3/config.mk
diff options
context:
space:
mode:
authorLokesh Vutla2018-12-19 12:53:31 +0530
committerTom Rini2018-12-26 21:35:52 -0500
commitadc702e22948ec5fe7b6706d0d66ec3bdd35e323 (patch)
tree598d40b08943683319a63bd16a7cf439285765c6 /arch/arm/mach-k3/config.mk
parent8efae021db1166ea07be0b2eda7f074d767843ea (diff)
arm: K3: Fix usage of CONFIG_SYS_K3_KEY
For signing the tiboot3.bin image, an optional KEY file can be passed using CONFIG_SYS_K3_KEY. Right now, Makefile scripts directly takes the config value and uses it for signing. This is okay if the build directory is a sub-directory of source tree, otherwise it fails. Fix it by using the path relative to the source tree. Reported-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch/arm/mach-k3/config.mk')
-rw-r--r--arch/arm/mach-k3/config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-k3/config.mk b/arch/arm/mach-k3/config.mk
index 7fc0b3f3576..be00d79fb03 100644
--- a/arch/arm/mach-k3/config.mk
+++ b/arch/arm/mach-k3/config.mk
@@ -37,7 +37,7 @@ cmd_gencert = cat $(srctree)/tools/k3_x509template.txt | sed $(SED_OPTS) > u-boo
ifeq ($(CONFIG_SYS_K3_KEY), "")
KEY=u-boot-spl-eckey.pem
else
-KEY=$(patsubst "%",%,$(CONFIG_SYS_K3_KEY))
+KEY=$(patsubst "%",$(srctree)/%,$(CONFIG_SYS_K3_KEY))
endif
u-boot-spl-eckey.pem: FORCE