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/bb/cooker.py | |
parent | 859b631b2f7b22173cde3cf9d3ac072c2788ea2f (diff) | |
download | openembedded-core-contrib-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/bb/cooker.py')
-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: if len(pkgs_to_build) == 0: raise NothingToBuild + ignore = (self.data.getVar("ASSUME_PROVIDED", True) or "").split() + for pkg in pkgs_to_build: + if pkg in ignore: + parselog.warn("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg) + if 'world' in pkgs_to_build: self.buildWorldTargetList() pkgs_to_build.remove('world') |