* [PATCH] cooker: warn if user specifies a target listed in ASSUME_PROVIDED
@ 2013-11-14 14:57 Paul Eggleton
0 siblings, 0 replies; only message in thread
From: Paul Eggleton @ 2013-11-14 14:57 UTC (permalink / raw)
To: bitbake-devel
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>
---
lib/bb/cooker.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 0580cd5..267d19e 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')
--
1.8.1.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-11-14 14:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-14 14:57 [PATCH] cooker: warn if user specifies a target listed in ASSUME_PROVIDED Paul Eggleton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox