diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sanity.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 0e7ad45c94..16275b2ea5 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -794,6 +794,11 @@ def check_sanity_everybuild(status, d): | |||
794 | if "." in paths or "./" in paths or "" in paths: | 794 | if "." in paths or "./" in paths or "" in paths: |
795 | status.addresult("PATH contains '.', './' or '' (empty element), which will break the build, please remove this.\nParsed PATH is " + str(paths) + "\n") | 795 | status.addresult("PATH contains '.', './' or '' (empty element), which will break the build, please remove this.\nParsed PATH is " + str(paths) + "\n") |
796 | 796 | ||
797 | #Check if bitbake is present in PATH environment variable | ||
798 | bb_check = bb.utils.which(d.getVar('PATH'), 'bitbake') | ||
799 | if not bb_check: | ||
800 | bb.warn("bitbake binary is not found in PATH, did you source the script?") | ||
801 | |||
797 | # Check whether 'inherit' directive is found (used for a class to inherit) | 802 | # Check whether 'inherit' directive is found (used for a class to inherit) |
798 | # in conf file it's supposed to be uppercase INHERIT | 803 | # in conf file it's supposed to be uppercase INHERIT |
799 | inherit = d.getVar('inherit') | 804 | inherit = d.getVar('inherit') |