]> code.ossystems Code Review - openembedded-core.git/commitdiff
recipetool: recognize less common makefile names
authorNathan Lynch <nathan_lynch@mentor.com>
Thu, 23 Jun 2016 16:53:28 +0000 (11:53 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Jul 2016 15:08:45 +0000 (16:08 +0100)
GNU make looks for "makefile" and "GNUmakefile" in addition to
"Makefile", so add these other names to the heuristic for detecting a
make-based project.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/recipetool/create_buildsys.py

index 78ae4bcdec5e6148b9564e96991652655a25d2e9..e08ad277d7b3ffea8015a86550e6728304b180cf 100644 (file)
@@ -737,7 +737,7 @@ class MakefileRecipeHandler(RecipeHandler):
         if 'buildsystem' in handled:
             return False
 
-        makefile = RecipeHandler.checkfiles(srctree, ['Makefile'])
+        makefile = RecipeHandler.checkfiles(srctree, ['Makefile', 'makefile', 'GNUmakefile'])
         if makefile:
             lines_after.append('# NOTE: this is a Makefile-only piece of software, so we cannot generate much of the')
             lines_after.append('# recipe automatically - you will need to examine the Makefile yourself and ensure')