summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-01-19 00:18:28 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-19 16:35:38 +0000
commit7dfff4b7f05653aea230294ff1a7c023730deff9 (patch)
tree1b51d8f594e075c03de976c069f1613a1ea11a1d /scripts
parent02570b1fc31c7f4e9643aea8365806089622c0e7 (diff)
downloadopenembedded-core-7dfff4b7f05653aea230294ff1a7c023730deff9.tar.gz
openembedded-core-7dfff4b7f05653aea230294ff1a7c023730deff9.tar.bz2
openembedded-core-7dfff4b7f05653aea230294ff1a7c023730deff9.zip
recipetool: create: detect flex/bison dependency
There are a few different macros that can be used to pick up these tools, add support for them all. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/recipetool/create_buildsys.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create_buildsys.py b/scripts/lib/recipetool/create_buildsys.py
index 544dae32db..c6d9bbe254 100644
--- a/scripts/lib/recipetool/create_buildsys.py
+++ b/scripts/lib/recipetool/create_buildsys.py
@@ -296,6 +296,10 @@ class AutotoolsRecipeHandler(RecipeHandler):
deps.append('libx11')
elif keyword in ('AX_BOOST', 'BOOST_REQUIRE'):
deps.append('boost')
+ elif keyword in ('AC_PROG_LEX', 'AM_PROG_LEX', 'AX_PROG_FLEX'):
+ deps.append('flex-native')
+ elif keyword in ('AC_PROG_YACC', 'AX_PROG_BISON'):
+ deps.append('bison-native')
elif keyword == 'AC_INIT':
if extravalues is not None:
res = ac_init_re.match(value)
@@ -336,6 +340,11 @@ class AutotoolsRecipeHandler(RecipeHandler):
'AC_PATH_X',
'AX_BOOST',
'BOOST_REQUIRE',
+ 'AC_PROG_LEX',
+ 'AM_PROG_LEX',
+ 'AX_PROG_FLEX',
+ 'AC_PROG_YACC',
+ 'AX_PROG_BISON',
'AC_INIT',
'AM_INIT_AUTOMAKE',
'define(',