diff options
| -rw-r--r-- | bitbake/lib/bb/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 2d4b258b85..b7e2c9218b 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
| @@ -1476,12 +1476,13 @@ def get_file_layer(filename, d): | |||
| 1476 | return match | 1476 | return match |
| 1477 | 1477 | ||
| 1478 | result = None | 1478 | result = None |
| 1479 | bbfiles = (d.getVar('BBFILES') or '').split() | 1479 | bbfiles = (d.getVar('BBFILES_PRIORITIZED') or '').split() |
| 1480 | bbfilesmatch = False | 1480 | bbfilesmatch = False |
| 1481 | for bbfilesentry in bbfiles: | 1481 | for bbfilesentry in bbfiles: |
| 1482 | if fnmatch.fnmatch(filename, bbfilesentry): | 1482 | if fnmatch.fnmatchcase(filename, bbfilesentry): |
| 1483 | bbfilesmatch = True | 1483 | bbfilesmatch = True |
| 1484 | result = path_to_layer(bbfilesentry) | 1484 | result = path_to_layer(bbfilesentry) |
| 1485 | break | ||
| 1485 | 1486 | ||
| 1486 | if not bbfilesmatch: | 1487 | if not bbfilesmatch: |
| 1487 | # Probably a bbclass | 1488 | # Probably a bbclass |
