diff options
-rw-r--r-- | meta/classes/sanity.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 292c5591dd..e021b9d240 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -784,6 +784,12 @@ def check_sanity_everybuild(status, d): | |||
784 | if "." in paths or "./" in paths or "" in paths: | 784 | if "." in paths or "./" in paths or "" in paths: |
785 | status.addresult("PATH contains '.', './' or '' (empty element), which will break the build, please remove this.\nParsed PATH is " + str(paths) + "\n") | 785 | status.addresult("PATH contains '.', './' or '' (empty element), which will break the build, please remove this.\nParsed PATH is " + str(paths) + "\n") |
786 | 786 | ||
787 | # Check whether 'inherit' directive is found (used for a class to inherit) | ||
788 | # in conf file it's supposed to be uppercase INHERIT | ||
789 | inherit = d.getVar('inherit') | ||
790 | if inherit: | ||
791 | status.addresult("Please don't use inherit directive in your local.conf. The directive is supposed to be used in classes and recipes only to inherit of bbclasses. Here INHERIT should be used.\n") | ||
792 | |||
787 | # Check that the DISTRO is valid, if set | 793 | # Check that the DISTRO is valid, if set |
788 | # need to take into account DISTRO renaming DISTRO | 794 | # need to take into account DISTRO renaming DISTRO |
789 | distro = d.getVar('DISTRO') | 795 | distro = d.getVar('DISTRO') |