summaryrefslogtreecommitdiffstats
path: root/meta/classes/ptest.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/ptest.bbclass')
-rw-r--r--meta/classes/ptest.bbclass17
1 files changed, 5 insertions, 12 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index 6ab5ee411f..37357e8215 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -7,25 +7,18 @@ DESCRIPTION_${PN}-ptest ?= "${DESCRIPTION} \
7This package contains a test directory ${PTEST_PATH} for package test purposes." 7This package contains a test directory ${PTEST_PATH} for package test purposes."
8 8
9PTEST_PATH ?= "${libdir}/${PN}/ptest" 9PTEST_PATH ?= "${libdir}/${PN}/ptest"
10FILES_${PN}-ptest = "${PTEST_PATH}/*" 10FILES_${PN}-ptest = "${PTEST_PATH}"
11SECTION_${PN}-ptest = "devel" 11SECTION_${PN}-ptest = "devel"
12ALLOW_EMPTY_${PN}-ptest = "1" 12ALLOW_EMPTY_${PN}-ptest = "1"
13PTEST_ENABLED = "${@base_contains("DISTRO_FEATURES", "ptest", "1", "0", d)}" 13PTEST_ENABLED = "${@base_contains("DISTRO_FEATURES", "ptest", "1", "0", d)}"
14RDEPENDS_${PN}-ptest_virtclass-native = "" 14RDEPENDS_${PN}-ptest_virtclass-native = ""
15RDEPENDS_${PN}-ptest_virtclass-nativesdk = "" 15RDEPENDS_${PN}-ptest_virtclass-nativesdk = ""
16 16
17PACKAGES += "${@base_contains('DISTRO_FEATURES', 'ptest', '${PN}-ptest', '', d)}" 17PACKAGES =+ "${@base_contains('DISTRO_FEATURES', 'ptest', '${PN}-ptest', '', d)}"
18
19FILES_${PN}-dbg += "${PTEST_PATH}/.debug \
20 ${PTEST_PATH}/*/.debug \
21 ${PTEST_PATH}/*/*/.debug \
22 ${PTEST_PATH}/*/*/*/.debug \
23 ${PTEST_PATH}/*/*/*/*/.debug \
24 "
25 18
26do_configure_ptest_base() { 19do_configure_ptest_base() {
27 if [ ${PTEST_ENABLED} = 1 ]; then 20 if [ ${PTEST_ENABLED} = 1 ]; then
28 if [ type -t do_configure_ptest = function ]; then 21 if [ a$(type -t do_configure_ptest) = afunction ]; then
29 do_configure_ptest 22 do_configure_ptest
30 fi 23 fi
31 fi 24 fi
@@ -33,7 +26,7 @@ do_configure_ptest_base() {
33 26
34do_compile_ptest_base() { 27do_compile_ptest_base() {
35 if [ ${PTEST_ENABLED} = 1 ]; then 28 if [ ${PTEST_ENABLED} = 1 ]; then
36 if [ type -t do_compile_ptest = function ]; then 29 if [ a$(type -t do_compile_ptest) = afunction ]; then
37 do_compile_ptest 30 do_compile_ptest
38 fi 31 fi
39 fi 32 fi
@@ -46,7 +39,7 @@ do_install_ptest_base() {
46 if grep -q install-ptest: Makefile; then 39 if grep -q install-ptest: Makefile; then
47 oe_runmake DESTDIR=${D}${PTEST_PATH} install-ptest 40 oe_runmake DESTDIR=${D}${PTEST_PATH} install-ptest
48 fi 41 fi
49 if [ type -t do_install_ptest = function ]; then 42 if [ a$(type -t do_install_ptest) = afunction ]; then
50 do_install_ptest 43 do_install_ptest
51 fi 44 fi
52 fi 45 fi