diff options
| -rw-r--r-- | meta/classes/sanity.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 635049ec97..05545f45f7 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
| @@ -368,8 +368,9 @@ def check_sanity(e): | |||
| 368 | if not check_app_exists("qemu-arm", e.data): | 368 | if not check_app_exists("qemu-arm", e.data): |
| 369 | messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH" | 369 | messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH" |
| 370 | 370 | ||
| 371 | if "." in data.getVar('PATH', e.data, True).split(":"): | 371 | paths = data.getVar('PATH', e.data, True).split(":") |
| 372 | messages = messages + "PATH contains '.' which will break the build, please remove this" | 372 | if "." in paths or "" in paths: |
| 373 | messages = messages + "PATH contains '.' or '', which will break the build, please remove this." | ||
| 373 | 374 | ||
| 374 | if data.getVar('TARGET_ARCH', e.data, True) == "arm": | 375 | if data.getVar('TARGET_ARCH', e.data, True) == "arm": |
| 375 | # This path is no longer user-readable in modern (very recent) Linux | 376 | # This path is no longer user-readable in modern (very recent) Linux |
