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

(From OE-Core rev: 4cd62f72dbaa0361e97d7c118752d0a2b02adfbe)

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>
This commit is contained in:
Randolph Sapp
2023-05-22 15:46:11 -05:00
committed by Richard Purdie
parent f18e1d2c6a
commit 2f68c2d727

View File

@@ -550,7 +550,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