From 68030f43f84a5aad221499472993b503cdf76c76 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 21 Dec 2010 14:06:41 +0000 Subject: sanity.bbclass: Add check for '.' in PATH and error if found (see bug #572) Signed-off-by: Richard Purdie --- meta/classes/sanity.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/classes/sanity.bbclass') diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 9d183e352f..e9217f9c0d 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -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: -- cgit v1.2.3-54-g00ecf