diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-07-22 16:38:50 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-25 12:54:16 +0100 |
commit | 638f8ca4085fc9519a8b1bc9fb212951e7635975 (patch) | |
tree | 044703b4bbeba97fcb6bcebfacb0897e53a3c41b /bitbake | |
parent | 93cc53f842f2e60d02e07874434b9628b0f13966 (diff) | |
download | poky-638f8ca4085fc9519a8b1bc9fb212951e7635975.tar.gz |
bitbake/cooker: show a warning when -b is specified
Too many people are using -b because they think it is the normal way of
specifying a target to be built, and then get confused when the build
fails due to a missing dependency; so show a warning about dependencies
not being handled when this option is used.
(Bitbake rev: c470f3f36aef24c46d9722593422286340be296b)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.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 7cf43a04ae..b0ddb2e112 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -906,6 +906,10 @@ class BBCooker: | |||
906 | Build the file matching regexp buildfile | 906 | Build the file matching regexp buildfile |
907 | """ | 907 | """ |
908 | 908 | ||
909 | # Too many people use -b because they think it's how you normally | ||
910 | # specify a target to be built, so show a warning | ||
911 | bb.warn("Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.") | ||
912 | |||
909 | # Parse the configuration here. We need to do it explicitly here since | 913 | # Parse the configuration here. We need to do it explicitly here since |
910 | # buildFile() doesn't use the cache | 914 | # buildFile() doesn't use the cache |
911 | self.parseConfiguration() | 915 | self.parseConfiguration() |