From 65be09f5e2a4a41e65c9232e208d8154b822fc4e Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 14 Nov 2013 14:57:54 +0000 Subject: [PATCH] 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 Signed-off-by: Richard Purdie --- lib/bb/cooker.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 0580cd5508c..267d19e3e23 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') -- 2.47.3