]> code.ossystems Code Review - meta-freescale.git/commitdiff
optee-test_3.7.0.imx: fix optee-test build
authorPeter Griffin <peter.griffin@linaro.org>
Tue, 1 Dec 2020 15:53:45 +0000 (16:53 +0100)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 17 Dec 2020 14:07:12 +0000 (11:07 -0300)
Currently nothing is built for optee-test which means
do_install() fails copying xtest binary.

Align the do_compile() with upstream meta-arm optee-test recipe.
With this patch the build then completes OK.

Fixes: a66dc98
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
(cherry picked from commit 840176462b2ae175bc06322f32c21d5b117b673e)

recipes-security/optee-imx/optee-test_3.7.0.imx.bb

index 04240ff0e691870594e35b32253850c47cad2be5..e0dfdbe2a9618abce2b7d3b7c42afaa7ec878c80 100644 (file)
@@ -39,6 +39,13 @@ EXTRA_OEMAKE = " \
     OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}/ \
     -C ${S} O=${B} \
 "
+do_compile() {
+    cd ${S}
+    # Top level makefile doesn't seem to handle parallel make gracefully
+    oe_runmake xtest
+    oe_runmake ta
+}
+do_compile[cleandirs] = "${B}"
 
 do_install () {
        install -d ${D}/usr/bin