summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorJoe MacDonald <joe_macdonald@mentor.com>2015-10-14 15:27:53 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-19 17:57:58 +0100
commitae7703f21aa269e1c5659f138702b5a195302282 (patch)
tree753654c75538dd4cac16b375b787c5d595ba59c0 /meta/classes/base.bbclass
parent5a02ec217d6c67db9dedf39d63cec504b87506b2 (diff)
downloadpoky-ae7703f21aa269e1c5659f138702b5a195302282.tar.gz
classes/base: provide hints on PACKAGECONFIG error
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. (From OE-Core rev: ead4a552464309e6ef3381590994b6cea225ca20) Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index f0780011bd..d711ae477e 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -391,7 +391,8 @@ python () {
391 items = flagval.split(",") 391 items = flagval.split(",")
392 num = len(items) 392 num = len(items)
393 if num > 4: 393 if num > 4:
394 bb.error("Only enable,disable,depend,rdepend can be specified!") 394 bb.error("%s: PACKAGECONFIG[%s] Only enable,disable,depend,rdepend can be specified!"
395 % (d.getVar('PN', True), flag))
395 396
396 if flag in pkgconfig: 397 if flag in pkgconfig:
397 if num >= 3 and items[2]: 398 if num >= 3 and items[2]: