diff options
author | Ross Burton <ross.burton@intel.com> | 2012-07-18 14:42:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-18 14:57:28 +0100 |
commit | 856019774bbe903833fd9ae9103c71351d773097 (patch) | |
tree | a7e3df259930b3c6cf3bc40989ad2aba47330b01 /meta/classes | |
parent | 63acb556f6bbf16b155f664f9f4bee4dcefc7eaa (diff) | |
download | poky-856019774bbe903833fd9ae9103c71351d773097.tar.gz |
sanity: display the parsed PATH when complaining about CWD elements
Many people don't understand the nuances of PATH, so help them by clarifying
the warning and displaying the parsed PATH element-by-element.
(From OE-Core rev: 47e6ab41f0f84e6bed7d337ebf96c954ec6909e8)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/sanity.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index a3fe075dee..630e0e3d6e 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -390,7 +390,8 @@ def check_sanity(sanity_data): | |||
390 | 390 | ||
391 | paths = sanity_data.getVar('PATH', True).split(":") | 391 | paths = sanity_data.getVar('PATH', True).split(":") |
392 | if "." in paths or "" in paths: | 392 | if "." in paths or "" in paths: |
393 | messages = messages + "PATH contains '.' or '', which will break the build, please remove this." | 393 | messages = messages + "PATH contains '.' or '' (empty element), which will break the build, please remove this.\n" |
394 | messages = messages + "Parsed PATH is " + str(paths) + "\n" | ||
394 | 395 | ||
395 | bbpaths = sanity_data.getVar('BBPATH', True).split(":") | 396 | bbpaths = sanity_data.getVar('BBPATH', True).split(":") |
396 | if "." in bbpaths or "" in bbpaths: | 397 | if "." in bbpaths or "" in bbpaths: |