]> code.ossystems Code Review - openembedded-core.git/commitdiff
recipetool: create: detect flex/bison dependency
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 18 Jan 2016 11:18:28 +0000 (00:18 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Jan 2016 16:35:38 +0000 (16:35 +0000)
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>
scripts/lib/recipetool/create_buildsys.py

index 544dae32dbcfccd6222ba42ba304dd6186d668d9..c6d9bbe254677986fd12f52e6ff33589898f6596 100644 (file)
@@ -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(',