From e4877c25e9cf48d6c068d1a56950e4916c08eaf9 Mon Sep 17 00:00:00 2001
From: Pascal Brand <pascal.brand@st.com>
Date: Tue, 25 Aug 2015 09:26:38 +0200
Subject: [PATCH] Hikey: create output repository to store mcuimage

Signed-off-by: Pascal Brand <pascal.brand@st.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
---
 hikey.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hikey.mk b/hikey.mk
index 2ee96e7..3015f47 100644
--- a/hikey.mk
+++ b/hikey.mk
@@ -31,7 +31,7 @@ OPTEE_OS_PATH 			?= $(ROOT)/optee_os
 OPTEE_OS_BIN 			?= $(OPTEE_OS_PATH)/out/arm-plat-hikey/core/tee.bin
 
 OPTEE_CLIENT_PATH 		?= $(ROOT)/optee_client
-OPTEE_CLIENT_EXPORT             ?= $(OPTEE_CLIENT_PATH)/out/export
+OPTEE_CLIENT_EXPORT		?= $(OPTEE_CLIENT_PATH)/out/export
 OPTEE_LINUXDRIVER_PATH 		?= $(ROOT)/optee_linuxdriver
 
 OPTEE_TEST_PATH 		?= $(ROOT)/optee_test
@@ -71,6 +71,7 @@ cleaner: clean mcuimage-cleaner busybox-cleaner linux-cleaner strace-cleaner
 ################################################################################
 mcuimage:
 	@if [ ! -f "$(MCUIMAGE_BIN)" ]; then \
+		mkdir -p `dirname $(MCUIMAGE_BIN)` ; \
 		curl https://builds.96boards.org/releases/hikey/linaro/binaries/latest/mcuimage.bin -o $(MCUIMAGE_BIN); \
 	fi
 
-- 
GitLab