summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandolph Sapp <rs@ti.com>2023-05-26 18:36:15 -0500
committerSteve Sakoman <steve@sakoman.com>2023-05-30 04:06:12 -1000
commit90855ef11e3bd85eea718532f20878b72aa729b4 (patch)
tree19c83e1efeb7a4c48ae5dfc13f5990c163f34f98
parentb7d6fc07462e6fca09d0db7f43a62920250ef053 (diff)
downloadopenembedded-core-contrib-90855ef11e3bd85eea718532f20878b72aa729b4.tar.gz
package: enable recursion on file globs
Enable recursion of file globs. This just allows the use of '**' in file globs to match 0 or more subdirectories, it should not make all current globs recursive [1]. [1] https://docs.python.org/3.6/library/glob.html#glob.glob Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes/package.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 67acc278d1..fed2f5531d 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -262,7 +262,7 @@ def files_from_filevars(filevars):
f = '.' + f
if not f.startswith("./"):
f = './' + f
- globbed = glob.glob(f)
+ globbed = glob.glob(f, recursive=True)
if globbed:
if [ f ] != globbed:
files += globbed