summaryrefslogtreecommitdiffstats
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 17:24:50 +0000
commit903d47135569d71bda0d554d8cc7fe06a6a44c80 (patch)
treed244946867d6af817725ed35c89789fb92c7862b /scripts
parenta66f4ac08601d8cc0b5610345a122c0df76cbc39 (diff)
downloadpoky-903d47135569d71bda0d554d8cc7fe06a6a44c80.tar.gz
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. (From OE-Core rev: 7dfff4b7f05653aea230294ff1a7c023730deff9) 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):
296 deps.append('libx11') 296 deps.append('libx11')
297 elif keyword in ('AX_BOOST', 'BOOST_REQUIRE'): 297 elif keyword in ('AX_BOOST', 'BOOST_REQUIRE'):
298 deps.append('boost') 298 deps.append('boost')
299 elif keyword in ('AC_PROG_LEX', 'AM_PROG_LEX', 'AX_PROG_FLEX'):
300 deps.append('flex-native')
301 elif keyword in ('AC_PROG_YACC', 'AX_PROG_BISON'):
302 deps.append('bison-native')
299 elif keyword == 'AC_INIT': 303 elif keyword == 'AC_INIT':
300 if extravalues is not None: 304 if extravalues is not None:
301 res = ac_init_re.match(value) 305 res = ac_init_re.match(value)
@@ -336,6 +340,11 @@ class AutotoolsRecipeHandler(RecipeHandler):
336 'AC_PATH_X', 340 'AC_PATH_X',
337 'AX_BOOST', 341 'AX_BOOST',
338 'BOOST_REQUIRE', 342 'BOOST_REQUIRE',
343 'AC_PROG_LEX',
344 'AM_PROG_LEX',
345 'AX_PROG_FLEX',
346 'AC_PROG_YACC',
347 'AX_PROG_BISON',
339 'AC_INIT', 348 'AC_INIT',
340 'AM_INIT_AUTOMAKE', 349 'AM_INIT_AUTOMAKE',
341 'define(', 350 'define(',