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 12:57:11 +0100 |
commit | fce2be6dcf8e7320b7b9df9947745e78fd160815 (patch) | |
tree | 8ffa4ae754132bd726828053d73ff215f4e5470e /meta | |
parent | 43ce4b804d433662fe77c6f5298060ba74a0e639 (diff) | |
download | openembedded-core-contrib-fce2be6dcf8e7320b7b9df9947745e78fd160815.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.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
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 54e4ec3b25f..a4a26e2787d 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/" SECTION = "devel" LICENSE = "BSD" +DEPENDS += "${@'bison-native flex-native' if '${PTEST_ENABLED}' == '1' else ''}" SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-${PV}.tar.bz2 \ file://run-ptest \ @@ -28,7 +29,6 @@ do_install_append_class-nativesdk() { } RDEPENDS_${PN} += "m4" -DEPENDS_${PN}-ptest += "bison-native flex-native" do_compile_ptest() { for i in `find ${S}/tests/ -type d |grep -Ev "concatenated-options|reject|table-opts" | awk -F/ '{print $NF}'`; \ |