summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create_kmod.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-09-20 16:43:33 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-11 12:14:26 +0000
commite9bb56067af36eca5e31274596f5bb739e51f9e8 (patch)
treecd0fbdef680bc3c0f46ebc98a927a2259410fd79 /scripts/lib/recipetool/create_kmod.py
parent05d1e6995697ff27ee719a386bd8ec92b9468374 (diff)
downloadpoky-e9bb56067af36eca5e31274596f5bb739e51f9e8.tar.gz
recipetool: ignore incidental kernel module source
If the source tree happens to contain a kernel module as an example, a test or under a "contrib" directory then we shouldn't be picking it up and making the determination that the entire thing is a kernel module. An example that triggered this is zstd, which ships a kernel module under contrib/linux-kernel: https://github.com/facebook/zstd (From OE-Core rev: c2b3154158d4bb0855daa56477393341139d4cf9) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/create_kmod.py')
-rw-r--r--scripts/lib/recipetool/create_kmod.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create_kmod.py b/scripts/lib/recipetool/create_kmod.py
index 7cf188db21..4569b53c80 100644
--- a/scripts/lib/recipetool/create_kmod.py
+++ b/scripts/lib/recipetool/create_kmod.py
@@ -40,7 +40,7 @@ class KernelModuleRecipeHandler(RecipeHandler):
40 40
41 makefiles = [] 41 makefiles = []
42 42
43 files = RecipeHandler.checkfiles(srctree, ['*.c', '*.h'], recursive=True) 43 files = RecipeHandler.checkfiles(srctree, ['*.c', '*.h'], recursive=True, excludedirs=['contrib', 'test', 'examples'])
44 if files: 44 if files:
45 for cfile in files: 45 for cfile in files:
46 # Look in same dir or parent for Makefile 46 # Look in same dir or parent for Makefile