diff options
author | Matt Madison <matt@madison.systems> | 2020-11-12 06:51:41 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-20 10:53:21 +0000 |
commit | 7e7893983f7cdb3907883cfd555d2f975f0af861 (patch) | |
tree | 1dfbe48fda27e1f62290f031f1ddd1af96b3e3bb /meta | |
parent | e3a67d60ccc9d5c509e4edd73dcd195fb6639980 (diff) | |
download | poky-7e7893983f7cdb3907883cfd555d2f975f0af861.tar.gz |
layer.conf: fix syntax error in PATH setting
Commit 05a87be51b44608ce4f77ac332df90a3cd2445ef introduced
a Python conditional expression when updating PATH that
generates syntax warnings in bitbake-cookerdaemon.log:
Var <PATH[:=]>:1: SyntaxWarning: "is not" with a literal. Did you mean "!="?
Fix this by using the more appropriate '!=' comparison
operator.
(From OE-Core rev: b6c3950be8e4edbdde74b5819c974124e30680c7)
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2e753a12cf6bb98f9e0940e5ed6255ce8c538eed)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/layer.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index 2d9cd05695..cda37c33b4 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf | |||
@@ -104,4 +104,4 @@ SSTATE_EXCLUDEDEPS_SYSROOT += ".*->autoconf-archive-native" | |||
104 | # We need to keep bitbake tools in PATH | 104 | # We need to keep bitbake tools in PATH |
105 | # Avoid empty path entries | 105 | # Avoid empty path entries |
106 | BITBAKEPATH := "${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}" | 106 | BITBAKEPATH := "${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}" |
107 | PATH := "${@'${BITBAKEPATH}:' if '${BITBAKEPATH}' is not '' else ''}${HOSTTOOLS_DIR}" | 107 | PATH := "${@'${BITBAKEPATH}:' if '${BITBAKEPATH}' != '' else ''}${HOSTTOOLS_DIR}" |