sanity.bbclass: Add check for '.' in PATH and error if found (see bug #572)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2010-12-21 14:06:41 +00:00
parent a034fad8d0
commit 68030f43f8
1 changed files with 3 additions and 0 deletions

View File

@ -155,6 +155,9 @@ def check_sanity(e):
if not check_app_exists("qemu-arm", e.data):
messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH"
if "." in data.getVar('PATH', e.data, True).split(":"):
messages = messages + "PATH contains '.' which will break the build, please remove this"
if data.getVar('TARGET_ARCH', e.data, True) == "arm":
# This path is no longer user-readable in modern (very recent) Linux
try: