diff options
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 48904a52d6..a4aaac59f8 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -1334,15 +1334,16 @@ class BBCooker: | |||
| 1334 | raise NoSpecificMatch | 1334 | raise NoSpecificMatch |
| 1335 | return matches[0] | 1335 | return matches[0] |
| 1336 | 1336 | ||
| 1337 | def buildFile(self, buildfile, task): | 1337 | def buildFile(self, buildfile, task, hidewarning=False): |
| 1338 | """ | 1338 | """ |
| 1339 | Build the file matching regexp buildfile | 1339 | Build the file matching regexp buildfile |
| 1340 | """ | 1340 | """ |
| 1341 | bb.event.fire(bb.event.BuildInit(), self.expanded_data) | 1341 | bb.event.fire(bb.event.BuildInit(), self.expanded_data) |
| 1342 | 1342 | ||
| 1343 | # Too many people use -b because they think it's how you normally | 1343 | if not hidewarning: |
| 1344 | # specify a target to be built, so show a warning | 1344 | # Too many people use -b because they think it's how you normally |
| 1345 | bb.warn("Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.") | 1345 | # specify a target to be built, so show a warning |
| 1346 | bb.warn("Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.") | ||
| 1346 | 1347 | ||
| 1347 | # Parse the configuration here. We need to do it explicitly here since | 1348 | # Parse the configuration here. We need to do it explicitly here since |
| 1348 | # buildFile() doesn't use the cache | 1349 | # buildFile() doesn't use the cache |
