export prefix = "/opt/ltp"
export exec_prefix = "/opt/ltp"
-do_unpack_append() {
- bb.build.exec_func('do_extract_tarball', d)
-}
-
do_install(){
install -d ${D}/opt/ltp/
oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install
FILES_${PN} += "/opt/ltp/* /opt/ltp/runtest/* /opt/ltp/scenario_groups/* /opt/ltp/testcases/bin/* /opt/ltp/testcases/bin/*/bin/* /opt/ltp/testscripts/* /opt/ltp/testcases/open_posix_testsuite/* /opt/ltp/testcases/open_posix_testsuite/conformance/* /opt/ltp/testcases/open_posix_testsuite/Documentation/* /opt/ltp/testcases/open_posix_testsuite/functional/* /opt/ltp/testcases/open_posix_testsuite/include/* /opt/ltp/testcases/open_posix_testsuite/scripts/* /opt/ltp/testcases/open_posix_testsuite/stress/* /opt/ltp/testcases/open_posix_testsuite/tools/*"
-do_extract_tarball() {
- if test -f ${WORKDIR}/ltp-full-${PV} ; then
- tar x --no-same-owner -f ${WORKDIR}/ltp-full-${PV} -C ${WORKDIR}
- rm -rf ${WORKDIR}/ltp-${PV}
- mv ${WORKDIR}/ltp-full-${PV} ${WORKDIR}/ltp-${PV}
- fi
-}
-
# Avoid generated binaries stripping. Otherwise some of the ltp tests such as ldd01 & nm01 fails
INHIBIT_PACKAGE_STRIP = "1"