diff options
| author | Randolph Sapp <rs@ti.com> | 2023-05-26 18:36:15 -0500 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-06-01 16:24:08 -1000 |
| commit | ae34dbb41051987292f6db75978fb7d567ab52dd (patch) | |
| tree | 37174f76a533bdd31412da0810aa98a47aa07a7f /meta/classes/package.bbclass | |
| parent | b32d7da361b475fd7fec019a51fbf93e23a1d406 (diff) | |
| download | poky-ae34dbb41051987292f6db75978fb7d567ab52dd.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
(From OE-Core rev: 90855ef11e3bd85eea718532f20878b72aa729b4)
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>
Diffstat (limited to 'meta/classes/package.bbclass')
| -rw-r--r-- | meta/classes/package.bbclass | 2 |
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): | |||
| 262 | f = '.' + f | 262 | f = '.' + f |
| 263 | if not f.startswith("./"): | 263 | if not f.startswith("./"): |
| 264 | f = './' + f | 264 | f = './' + f |
| 265 | globbed = glob.glob(f) | 265 | globbed = glob.glob(f, recursive=True) |
| 266 | if globbed: | 266 | if globbed: |
| 267 | if [ f ] != globbed: | 267 | if [ f ] != globbed: |
| 268 | files += globbed | 268 | files += globbed |
