aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorGravatar Etienne Carriere <etienne.carriere@linaro.org>2019-03-01 17:47:05 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-03-05 21:51:23 +0100
commitca34a3ed25a3e215de1cc268d08cfecfa1dee096 (patch)
treea145bce514f90c3fb51c9a5010d0c18b295f85c9 /boot
parentc125d445b018cca576c8ab1c20244116f434ee30 (diff)
downloadbuildroot-ca34a3ed25a3e215de1cc268d08cfecfa1dee096.tar.gz
buildroot-ca34a3ed25a3e215de1cc268d08cfecfa1dee096.tar.bz2
boot/optee-os: define a new variable OPTEE_OS_SDK
This commit adds a new variable OPTEE_OS_SDK, define by the optee-os package, which points to the OPTEE SDK installed in STAGING_DIR. This will allow other pakage to find this SDK more easily. Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> [Thomas: improve commit log, rename variable to just OPTEE_OS_SDK] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/optee-os/optee-os.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/boot/optee-os/optee-os.mk b/boot/optee-os/optee-os.mk
index aeac067309..6da20a9f3e 100644
--- a/boot/optee-os/optee-os.mk
+++ b/boot/optee-os/optee-os.mk
@@ -55,9 +55,11 @@ OPTEE_OS_MAKE_OPTS += $(call qstrip,$(BR2_TARGET_OPTEE_OS_ADDITIONAL_VARIABLES))
OPTEE_OS_BUILDDIR_OUT = out
ifeq ($(BR2_aarch64),y)
OPTEE_OS_LOCAL_SDK = $(OPTEE_OS_BUILDDIR_OUT)/export-ta_arm64
+OPTEE_OS_SDK = $(STAGING_DIR)/lib/optee/export-ta_arm64
endif
ifeq ($(BR2_arm),y)
OPTEE_OS_LOCAL_SDK = $(OPTEE_OS_BUILDDIR_OUT)/export-ta_arm32
+OPTEE_OS_SDK = $(STAGING_DIR)/lib/optee/export-ta_arm32
endif
ifeq ($(BR2_TARGET_OPTEE_OS_CORE),y)
@@ -86,8 +88,8 @@ define OPTEE_OS_BUILD_SDK
$(TARGET_CONFIGURE_OPTS) $(OPTEE_OS_MAKE_OPTS) ta_dev_kit
endef
define OPTEE_OS_INSTALL_STAGING_CMDS
- mkdir -p $(STAGING_DIR)/lib/optee
- cp -ardpf $(@D)/$(OPTEE_OS_LOCAL_SDK) $(STAGING_DIR)/lib/optee
+ mkdir -p $(OPTEE_OS_SDK)
+ cp -ardpf $(@D)/$(OPTEE_OS_LOCAL_SDK)/* $(OPTEE_OS_SDK)
endef
endif # BR2_TARGET_OPTEE_OS_SDK