diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-11-14 14:57:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-15 11:48:52 +0000 |
commit | ad65846ba8d9da15ee18382873146920629ff6ed (patch) | |
tree | 3e79c3688a40e4099d616a8e9e9a697718928a72 /bitbake/lib | |
parent | 859b631b2f7b22173cde3cf9d3ac072c2788ea2f (diff) | |
download | poky-ad65846ba8d9da15ee18382873146920629ff6ed.tar.gz |
bitbake: cooker: warn if user specifies a target listed in ASSUME_PROVIDED
If the user explicitly asks to build a target that is listed in the
value of ASSUME_PROVIDED, show a warning mentioning that it will be
ignored.
(Bitbake rev: 65be09f5e2a4a41e65c9232e208d8154b822fc4e)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 0580cd5508..267d19e3e2 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1268,6 +1268,11 @@ class BBCooker: | |||
1268 | if len(pkgs_to_build) == 0: | 1268 | if len(pkgs_to_build) == 0: |
1269 | raise NothingToBuild | 1269 | raise NothingToBuild |
1270 | 1270 | ||
1271 | ignore = (self.data.getVar("ASSUME_PROVIDED", True) or "").split() | ||
1272 | for pkg in pkgs_to_build: | ||
1273 | if pkg in ignore: | ||
1274 | parselog.warn("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg) | ||
1275 | |||
1271 | if 'world' in pkgs_to_build: | 1276 | if 'world' in pkgs_to_build: |
1272 | self.buildWorldTargetList() | 1277 | self.buildWorldTargetList() |
1273 | pkgs_to_build.remove('world') | 1278 | pkgs_to_build.remove('world') |