]> code.ossystems Code Review - openembedded-core.git/commit
layer.conf: fix sanity error for PATH variable in extensible SDK workflow
authorSourabh Banerjee <sbanerje@codeaurora.org>
Tue, 13 Oct 2020 16:45:10 +0000 (22:15 +0530)
committerSteve Sakoman <steve@sakoman.com>
Mon, 8 Feb 2021 16:15:17 +0000 (06:15 -1000)
commit0ab58355cc625e43056ae07772222be19e98f5f6
treeb72b9f2f8a090b20754e2cb86ae98a893403f95e
parentabfcabb070ef133f9b76c08b044a9fccd474b7ca
layer.conf: fix sanity error for PATH variable in extensible SDK workflow

Sanity checker reports following error for the PATH variable,
when bitbake -e <recipe> command is run in an extensible SDK workspace.
   PATH contains '.', './' or '' (empty element), which will break the build

In case of extensible SDK, PATH variable is formed with two consecutive ':'
as bb.utils.which(d.getVar('PATH'),'bitbake') call returns an empty string.

This change adds ':' if BITBAKEPATH is a non empty string.

Signed-off-by: Sourabh Banerjee <sbanerje@codeaurora.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 05a87be51b44608ce4f77ac332df90a3cd2445ef)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/conf/layer.conf