summaryrefslogtreecommitdiffstats
path: root/lib/bb
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-11-14 14:57:54 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-15 11:26:41 +0000
commit65be09f5e2a4a41e65c9232e208d8154b822fc4e (patch)
treeaba26ce5bd3931f002e8beabaa5b0b7ebad5fdf4 /lib/bb
parentafdea16516084ef6c046d80e12bf244f25a9da50 (diff)
downloadbitbake-contrib-65be09f5e2a4a41e65c9232e208d8154b822fc4e.tar.gz
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. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rw-r--r--lib/bb/cooker.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 0580cd550..267d19e3e 100644
--- a/lib/bb/cooker.py
+++ b/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')