mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
wic: Pass canonicalized paths in PSEUDO_IGNORE_PATHS
(From OE-Core rev: 9aec2fdda1235f069cbb365634a3f0fcfc846682) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 55618cbd58d6784a82e773f323723be6f722232f) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6df2d6ed74
commit
44bc055c8c
@@ -207,11 +207,21 @@ class Partition():
|
||||
|
||||
p_prefix = os.environ.get("PSEUDO_PREFIX", "%s/usr" % native_sysroot)
|
||||
if (pseudo_dir):
|
||||
# Canonicalize the ignore paths. This corresponds to
|
||||
# calling oe.path.canonicalize(), which is used in bitbake.conf.
|
||||
ignore_paths = [rootfs] + (get_bitbake_var("PSEUDO_IGNORE_PATHS") or "").split(",")
|
||||
canonical_paths = []
|
||||
for path in ignore_paths:
|
||||
if "$" not in path:
|
||||
trailing_slash = path.endswith("/") and "/" or ""
|
||||
canonical_paths.append(os.path.realpath(path) + trailing_slash)
|
||||
ignore_paths = ",".join(canonical_paths)
|
||||
|
||||
pseudo = "export PSEUDO_PREFIX=%s;" % p_prefix
|
||||
pseudo += "export PSEUDO_LOCALSTATEDIR=%s;" % pseudo_dir
|
||||
pseudo += "export PSEUDO_PASSWD=%s;" % rootfs_dir
|
||||
pseudo += "export PSEUDO_NOSYMLINKEXP=1;"
|
||||
pseudo += "export PSEUDO_IGNORE_PATHS=%s;" % (rootfs + "," + (get_bitbake_var("PSEUDO_IGNORE_PATHS") or ""))
|
||||
pseudo += "export PSEUDO_IGNORE_PATHS=%s;" % ignore_paths
|
||||
pseudo += "%s " % get_bitbake_var("FAKEROOTCMD")
|
||||
else:
|
||||
pseudo = None
|
||||
|
||||
Reference in New Issue
Block a user