If libtool builds a binary it's best to use libtool to install it, as
otherwise you might install a wrapper script or need to make assumptions
about where libtool has put the real binary (as this isn't always .libs)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
}
do_install_ptest() {
- install ${B}/tests/.libs/test* ${D}/${PTEST_PATH}
- install ${B}/tests/.libs/tdict ${D}/${PTEST_PATH}
- install ${B}/tests/testit.sh ${D}/${PTEST_PATH}
- install ${B}/tests/test-poptrc ${D}/${PTEST_PATH}
+ for f in test1 test2 tdict test3 testit.sh test-poptrc; do
+ ${B}/libtool --mode=install install ${B}/tests/$f ${D}/${PTEST_PATH}
+ done
}
BBCLASSEXTEND = "native nativesdk"