]> code.ossystems Code Review - openembedded-core.git/commit
sanity.bbclass: Detect and fail if 'inherit' is used in conf file
authorGregor Zatko <gzatko@gmail.com>
Sun, 24 May 2020 10:24:04 +0000 (12:24 +0200)
committerSteve Sakoman <steve@sakoman.com>
Tue, 26 May 2020 16:47:59 +0000 (06:47 -1000)
commitbc6e27aeed5d536d2b764949c307f260f78b7810
treeef9b69ddca3047a05c961ad35b08c5dd2163184a
parentbe24033acee75526a3a66c12606ef67dcb52a7ee
sanity.bbclass: Detect and fail if 'inherit' is used in conf file

'inherit' directive may not be used in conf files as it's supposed
to be used for the inheritance of classes.
Correct form in conf file is INHERIT.

This commit adds:
- a sanity check to find whether the wrong case exists
- fail the build if so
- tell user about the difference in directives

[YOCTO #5426]

Signed-off-by: Gregor Zatko <gzatko@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 07bf9b460fe97dec86439302a83bbefa8bac9d70)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/sanity.bbclass