diff options
author | Joe MacDonald <joe_macdonald@mentor.com> | 2015-10-14 15:27:53 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-19 17:49:15 +0100 |
commit | ead4a552464309e6ef3381590994b6cea225ca20 (patch) | |
tree | 641a0046d6580b3c3c2c79dc2de20db57bf68b12 /meta/classes | |
parent | a46fb1a06be2df00a0bceb4e60ebdecb55b5974c (diff) | |
download | openembedded-core-ead4a552464309e6ef3381590994b6cea225ca20.tar.gz openembedded-core-ead4a552464309e6ef3381590994b6cea225ca20.tar.bz2 openembedded-core-ead4a552464309e6ef3381590994b6cea225ca20.zip |
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.
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 3 |
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 () { 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]: |