diff options
author | Christopher Larson <chris_larson@mentor.com> | 2014-09-16 18:22:02 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-22 13:04:21 +0100 |
commit | 533af2dd0f9aebd3730b26efca11350327e77821 (patch) | |
tree | e0789d75779b7d1aad9c5a51bc2fed8c0d28ad6b /meta | |
parent | 3e6df77b237af30ae326700cd2af8f31b93b0fb2 (diff) | |
download | poky-533af2dd0f9aebd3730b26efca11350327e77821.tar.gz |
flex: fix the deps for ptest builds
Building the tests for flex requires flex-native and bison-native, but the
attempt to add this dependency was done incorrectly. Use an inline python
conditional based on PTEST_ENABLED instead.
(From OE-Core rev: fce2be6dcf8e7320b7b9df9947745e78fd160815)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/flex/flex.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/flex/flex.inc b/meta/recipes-devtools/flex/flex.inc index 54e4ec3b25..a4a26e2787 100644 --- a/meta/recipes-devtools/flex/flex.inc +++ b/meta/recipes-devtools/flex/flex.inc | |||
@@ -5,6 +5,7 @@ HOMEPAGE = "http://sourceforge.net/projects/flex/" | |||
5 | 5 | ||
6 | SECTION = "devel" | 6 | SECTION = "devel" |
7 | LICENSE = "BSD" | 7 | LICENSE = "BSD" |
8 | DEPENDS += "${@'bison-native flex-native' if '${PTEST_ENABLED}' == '1' else ''}" | ||
8 | 9 | ||
9 | SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-${PV}.tar.bz2 \ | 10 | SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-${PV}.tar.bz2 \ |
10 | file://run-ptest \ | 11 | file://run-ptest \ |
@@ -28,7 +29,6 @@ do_install_append_class-nativesdk() { | |||
28 | } | 29 | } |
29 | 30 | ||
30 | RDEPENDS_${PN} += "m4" | 31 | RDEPENDS_${PN} += "m4" |
31 | DEPENDS_${PN}-ptest += "bison-native flex-native" | ||
32 | 32 | ||
33 | do_compile_ptest() { | 33 | do_compile_ptest() { |
34 | for i in `find ${S}/tests/ -type d |grep -Ev "concatenated-options|reject|table-opts" | awk -F/ '{print $NF}'`; \ | 34 | for i in `find ${S}/tests/ -type d |grep -Ev "concatenated-options|reject|table-opts" | awk -F/ '{print $NF}'`; \ |