summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijai Kumar K <vijaikumar.kanagarajan@gmail.com>2020-09-01 15:32:33 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-02 15:58:05 +0100
commitca0a6025351cb2135e87cecf828633cf12aa34c6 (patch)
treef43c87d718d12c43ee55ac2f7566ea7185c88c7b
parent9c6a114213a80bebc2988ae8d39b296bce7f6982 (diff)
downloadopenembedded-core-contrib-ca0a6025351cb2135e87cecf828633cf12aa34c6.tar.gz
openembedded-core-contrib-ca0a6025351cb2135e87cecf828633cf12aa34c6.tar.bz2
openembedded-core-contrib-ca0a6025351cb2135e87cecf828633cf12aa34c6.zip
wic: misc: Add /bin to the list of searchpaths
/bin is also a valid path where one can find executables. Add that to the search path. Signed-off-by: Vijai Kumar K <vijaikumar.kanagarajan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/wic/misc.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/lib/wic/misc.py b/scripts/lib/wic/misc.py
index 91975ba151..4b08d649c6 100644
--- a/scripts/lib/wic/misc.py
+++ b/scripts/lib/wic/misc.py
@@ -138,8 +138,9 @@ def exec_native_cmd(cmd_and_args, native_sysroot, pseudo=""):
if pseudo:
cmd_and_args = pseudo + cmd_and_args
- native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin" % \
- (native_sysroot, native_sysroot, native_sysroot)
+ native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/bin" % \
+ (native_sysroot, native_sysroot,
+ native_sysroot, native_sysroot)
native_cmd_and_args = "export PATH=%s:$PATH;%s" % \
(native_paths, cmd_and_args)