summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2012-06-13 07:01:43 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-13 13:11:22 +0100
commitd8d95d10bd6945047b4bab9ff9a4e948c73db205 (patch)
treeaaf058e6da6baed5ceec11a0cd5afa1139c93e18 /meta
parent5a50eb1ce6ca200063a756afb462d45b5ebb2072 (diff)
downloadpoky-d8d95d10bd6945047b4bab9ff9a4e948c73db205.tar.gz
sanity.bbclass: warn the user if BBPATH contains wrong entries
If BBPATH references the working directory, the user is warned and asked to fix the problem. [Yocto #1465] (From OE-Core rev: 73f10ae955ba217078fa2c5288b736ae8a30b184) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sanity.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index f79fc3f953..6ed1e6f4c6 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -387,6 +387,17 @@ def check_sanity(sanity_data):
387 if "." in paths or "" in paths: 387 if "." in paths or "" in paths:
388 messages = messages + "PATH contains '.' or '', which will break the build, please remove this." 388 messages = messages + "PATH contains '.' or '', which will break the build, please remove this."
389 389
390 bbpaths = sanity_data.getVar('BBPATH', True).split(":")
391 if "." in bbpaths or "" in bbpaths:
392 # TODO: change the following message to fatal when all BBPATH issues
393 # are fixed
394 bb.warn("BBPATH references the current directory, either through " \
395 "an empty entry, or a '.'.\n\t This is unsafe and means your "\
396 "layer configuration is adding empty elements to BBPATH.\n\t "\
397 "Please check your layer.conf files and other BBPATH " \
398 "settings to remove the current working directory " \
399 "references.");
400
390 if sanity_data.getVar('TARGET_ARCH', True) == "arm": 401 if sanity_data.getVar('TARGET_ARCH', True) == "arm":
391 # This path is no longer user-readable in modern (very recent) Linux 402 # This path is no longer user-readable in modern (very recent) Linux
392 try: 403 try: