diff options
| author | Robert Yang <liezhi.yang@windriver.com> | 2016-10-27 01:50:18 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-04 12:50:56 +0000 |
| commit | edb5b524b3ee807d55a437cbab3d768c5f6f2283 (patch) | |
| tree | e8a816c04e0f0be812134ac58fb24f99b43a7271 /bitbake | |
| parent | 0038120f057ab77aaac7a9c7712b4ec04507809d (diff) | |
| download | poky-edb5b524b3ee807d55a437cbab3d768c5f6f2283.tar.gz | |
bitbake: lib/bb/cooker.py: fix for BBFILE_PATTERN = ""
There would be error when BBFILE_PATTERN = None:
BBFILE_PATTERN_foo not defined
This is the correct behaviour, but when the layer sets BBFILE_PATTERN = "",
it would match all the remaining recipes, and cause "No bb files matched BBFILE_PATTERN"
warnings for all the layers which behind it.
When a layer sets BBFILE_PATTERN = "" (for example, a layer only
provides git repos and source tarballs), now it means has no recipes.
This is different from BBFILE_PATTERN_IGNORE_EMPTY, the later one means
that it *may* not have any recipes.
(Bitbake rev: 91c3b34625fac2a0f093a4b46a46e89f813e7972)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 42831e2771..c08af4593f 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -1240,6 +1240,10 @@ class BBCooker: | |||
| 1240 | parselog.error("BBFILE_PATTERN_%s not defined" % c) | 1240 | parselog.error("BBFILE_PATTERN_%s not defined" % c) |
| 1241 | errors = True | 1241 | errors = True |
| 1242 | continue | 1242 | continue |
| 1243 | elif regex == "": | ||
| 1244 | parselog.debug(1, "BBFILE_PATTERN_%s is empty" % c) | ||
| 1245 | errors = False | ||
| 1246 | continue | ||
| 1243 | try: | 1247 | try: |
| 1244 | cre = re.compile(regex) | 1248 | cre = re.compile(regex) |
| 1245 | except re.error: | 1249 | except re.error: |
