summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTerry Zhou <bjzhou@marvell.com>2017-04-18 09:29:17 +0800
committerKonstantin Porotchkin <kostap@marvell.com>2017-08-22 11:17:25 +0300
commit66e998d0dd6d505b1739b84c1bf54faf66f85891 (patch)
tree1a3ad07b2f2a54ca6cb1ee493848ae45dc2b86a8 /Makefile
parent52cb244f09d5f587a1d96ca4ea67e1eccb0c0e14 (diff)
fix: a3700: restore timn image in uart trusted build
- The TIMN image is missing in Armada3700 build folder, which is one of the image components needed by the recovery procedure. Makefile is supposed to get the image filename from atf_timN.txt and it defines a variable to parse the filename in the atf_timN.txt. But the atf_timN.txt is dynamically generated. It doesn't exist when this variable is initialized (if ATF performs a clean build). - This patch is to change this global variable as the second-expansion of shell command in Makefile. So that the shell will execute the enclosed command only when the Makefile is referring this variable Change-Id: Iba39377cc2752c42bcb0ecbd854f8a9e57e1353d Signed-off-by: Terry Zhou <bjzhou@marvell.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/38699 Tested-by: iSoC Platform CI <ykjenk@marvell.com> Reviewed-by: Hua Jing <jinghua@marvell.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dba1191b..a0eb172a 100644
--- a/Makefile
+++ b/Makefile
@@ -454,7 +454,7 @@ IMAGESPATH := $(DOIMAGEPATH)/trusted
TIMNCFG := $(DOIMAGEPATH)/atf-timN.txt
TIMNSIG := $(IMAGESPATH)/timnsign.txt
TIM2IMGARGS := -i $(DOIMAGE_CFG) -n $(TIMNCFG)
-TIMN_IMAGE := $(shell grep "Image Filename:" -m 1 $(TIMNCFG) | cut -c 17-)
+TIMN_IMAGE := $$(grep "Image Filename:" -m 1 $(TIMNCFG) | cut -c 17-)
else #MARVELL_SECURE_BOOT
DOIMAGETOOL := $(DOIMAGEPATH)/wtptp_tool/linux/ntbb_linux.exe
DOIMAGE_CFG := $(DOIMAGEPATH)/atf-ntim.txt