]> code.ossystems Code Review - meta-freescale.git/commitdiff
optee-test: Cleanup install and FILES
authorTom Hochstein <tom.hochstein@nxp.com>
Fri, 18 Feb 2022 23:04:22 +0000 (17:04 -0600)
committerTom Hochstein <tom.hochstein@nxp.com>
Thu, 24 Feb 2022 19:32:53 +0000 (13:32 -0600)
- Use variables properly for the install and FILES
- Simplify the FILES update with an append

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
recipes-security/optee-imx/optee-test_3.10.0.imx.bb

index 7039d0c4c17cb4898c9b8e51415b5a5788ec05f6..5395178768e49662a120a8f54114a740349440fa 100644 (file)
@@ -49,15 +49,15 @@ do_compile() {
 do_compile[cleandirs] = "${B}"
 
 do_install () {
-       install -d ${D}/usr/bin
-       install ${B}/xtest/xtest ${D}/usr/bin/
+       install -d ${D}${bindir}
+       install ${B}/xtest/xtest ${D}${bindir}
 
-       install -d ${D}/lib/optee_armtz
+       install -d ${D}${nonarch_base_libdir}/optee_armtz
        find ${B}/ta -name '*.ta' | while read name; do
-               install -m 444 $name ${D}/lib/optee_armtz/
+               install -m 444 $name ${D}${nonarch_base_libdir}/optee_armtz/
        done
 }
 
-FILES:${PN} = "/usr/bin/ /lib*/optee_armtz/"
+FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/"
 
 COMPATIBLE_MACHINE = "(imx-nxp-bsp)"