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: parselog.error("BBFILE_PATTERN_%s not defined" % c) errors = True continue + elif regex == "": + parselog.debug(1, "BBFILE_PATTERN_%s is empty" % c) + errors = False + continue try: cre = re.compile(regex) except re.error: