]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/base: provide hints on PACKAGECONFIG error
authorJoe MacDonald <joe_macdonald@mentor.com>
Wed, 14 Oct 2015 19:27:53 +0000 (15:27 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Oct 2015 16:49:15 +0000 (17:49 +0100)
Commit 771f89498c introduces an error message that is very rarely hit and
when it is, it is usually easy to trace the root cause very quickly.  The
information provided in the error message isn't enough to lead you back to
the actual failure, however, so expand upon it a bit, pinpointing the
specific package and flag that fails.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/base.bbclass

index f0780011bd58d4b510cd0f18a9734ecd657a8b4b..d711ae477e050f9391180446bac03af124a1cec3 100644 (file)
@@ -391,7 +391,8 @@ python () {
             items = flagval.split(",")
             num = len(items)
             if num > 4:
-                bb.error("Only enable,disable,depend,rdepend can be specified!")
+                bb.error("%s: PACKAGECONFIG[%s] Only enable,disable,depend,rdepend can be specified!"
+                    % (d.getVar('PN', True), flag))
 
             if flag in pkgconfig:
                 if num >= 3 and items[2]: