diff options
-rw-r--r-- | meta/classes/ptest.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index fa518f6d45..97865c9338 100644 --- a/meta/classes/ptest.bbclass +++ b/meta/classes/ptest.bbclass | |||
@@ -4,6 +4,7 @@ This package contains a test directory ${PTEST_PATH} for package test purposes." | |||
4 | 4 | ||
5 | PTEST_PATH ?= "${libdir}/${BPN}/ptest" | 5 | PTEST_PATH ?= "${libdir}/${BPN}/ptest" |
6 | PTEST_BUILD_HOST_FILES ?= "Makefile" | 6 | PTEST_BUILD_HOST_FILES ?= "Makefile" |
7 | PTEST_BUILD_HOST_PATTERN ?= "" | ||
7 | 8 | ||
8 | FILES_${PN}-ptest = "${PTEST_PATH}" | 9 | FILES_${PN}-ptest = "${PTEST_PATH}" |
9 | SECTION_${PN}-ptest = "devel" | 10 | SECTION_${PN}-ptest = "devel" |
@@ -56,6 +57,10 @@ do_install_ptest_base() { | |||
56 | -e 's#${WORKDIR}/*=#.=#g' \ | 57 | -e 's#${WORKDIR}/*=#.=#g' \ |
57 | -e 's#${WORKDIR}/*##g' \ | 58 | -e 's#${WORKDIR}/*##g' \ |
58 | -i $installed_ptest_file | 59 | -i $installed_ptest_file |
60 | if [ -n "${PTEST_BUILD_HOST_PATTERN}" ]; then | ||
61 | sed -E '/${PTEST_BUILD_HOST_PATTERN}/d' \ | ||
62 | -i $installed_ptest_file | ||
63 | fi | ||
59 | done | 64 | done |
60 | done | 65 | done |
61 | } | 66 | } |