]> code.ossystems Code Review - openembedded-core.git/commit
sanity.bbclass: sanity check for if bitbake is present in PATH
authorDorinda <dorindabassey@gmail.com>
Tue, 26 Jan 2021 01:33:59 +0000 (02:33 +0100)
committerSteve Sakoman <steve@sakoman.com>
Thu, 28 Jan 2021 16:13:19 +0000 (06:13 -1000)
commit9ed5d67d5d50f97072b6054ce913a3f5d981335e
tree50f9f935bca3b7c094fc5f83fed7005838c717ad
parenta20b0f80c2d169115a0336f155a834a5801982f9
sanity.bbclass: sanity check for if bitbake is present in PATH

If a user executes the environment script instead of sourcing it,
there's an error about an empty element in PATH. This is because
bitbake isn't present in environment variable PATH. Hence, this
patch adds a sanity check to verify if bitbake is present in
PATH and if bitbake isn't present issue a warning message.

[YOCTO #13822]

Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e08799913a7f207bc63e085eb98196fd61ed57bc)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/sanity.bbclass