]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: cooker: warn if user specifies a target listed in ASSUME_PROVIDED
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 14 Nov 2013 14:57:54 +0000 (14:57 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Nov 2013 11:48:52 +0000 (11:48 +0000)
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>
bitbake/lib/bb/cooker.py

index 0580cd5508c08a50805c66f068522e46ef1c67b9..267d19e3e23634b9fa4aa675bb7fdf052356995a 100644 (file)
@@ -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')