summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-06-02 15:24:05 +0100
committerJoshua Lock <josh@linux.intel.com>2010-06-02 15:25:00 +0100
commit7ada79de07b207b3791517ab29c9302fe8f24b14 (patch)
treed6235402ae4cd917c13b9f54fbdb1a5991672987
parent9ea69b17f76168146537ace408b1c9e231154402 (diff)
downloadpoky-7ada79de07b207b3791517ab29c9302fe8f24b14.tar.gz
sanity.bbclass: check for invalid characters in OEROOT
Some characters in the path for OEROOT are known to cause issues, so check for them in the sanity checker. Currerently we warn on +'s and spaces. Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--meta/classes/sanity.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 3cf1c56aef..ab929ad61d 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -175,6 +175,12 @@ def check_sanity(e):
175 f.write(current_abi) 175 f.write(current_abi)
176 f.close() 176 f.close()
177 177
178 oeroot = data.getVar('OEROOT', e.data)
179 if oeroot.find ('+') != -1:
180 messages = messages + "Error, you have an invalid character (+) in your OEROOT directory path. Please more Poky to a directory which doesn't include a +."
181 elif oeroot.find (' ') != -1:
182 messages = messages + "Error, you have a space in your OEROOT directory path. Please move Poky to a directory which doesn't include a space."
183
178 if messages != "": 184 if messages != "":
179 raise_sanity_error(messages) 185 raise_sanity_error(messages)
180 186