]> code.ossystems Code Review - meta-freescale.git/commitdiff
optee-test_3.2.0.imx: fix TA_DEV_KIT_DIR is not correctly defined error
authorPeter Griffin <peter.griffin@linaro.org>
Wed, 22 Apr 2020 22:52:14 +0000 (23:52 +0100)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 23 Apr 2020 11:35:41 +0000 (08:35 -0300)
DEFAULTTUNE is no longer aarch64 which means optee-test
build fails. Update to use the same mechanism as optee-os
recipe for setting arch.

Build now passes on imx8mq-evk and optee xtest suite
passes

+-----------------------------------------------------
16078 subtests of which 3 failed
74 test cases of which 3 failed
0 test case was skipped
TEE test application done!

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
recipes-security/optee-imx/optee-test_3.2.0.imx.bb

index dc92511a70994a14ebb19cad54c921787fe45e8f..c78f981690dd08dd3d64d7b31280f2b48b78f9d0 100644 (file)
@@ -26,14 +26,14 @@ S = "${WORKDIR}/git"
 
 SRCREV = "b7114b828b82f2c0eec124ed424eff1230cc5319"
 
+OPTEE_ARCH ?= "arm32"
+OPTEE_ARCH_armv7a = "arm32"
+OPTEE_ARCH_aarch64 = "arm64"
+
 do_compile () {
-    if [ ${DEFAULTTUNE} = "aarch64" ];then
-        export TA_DEV_KIT_DIR=${STAGING_INCDIR}/optee/export-user_ta_arm64/
-        export ARCH=arm64
-    else
-        export TA_DEV_KIT_DIR=${STAGING_INCDIR}/optee/export-user_ta_arm32/
-        export ARCH=arm
-    fi
+    export TA_DEV_KIT_DIR=${STAGING_INCDIR}/optee/export-user_ta_${OPTEE_ARCH}/
+    export ARCH=${OPTEE_ARCH}
+
     export OPTEE_CLIENT_EXPORT=${STAGING_DIR_HOST}/usr
     export CROSS_COMPILE_HOST=${HOST_PREFIX}
     export CROSS_COMPILE_TA=${HOST_PREFIX}