[elbe-devel] [PATCH 06/10] rfs: allow specifying the architecture for BuildEnv.debootstrap()
Torben Hohn
torben.hohn at linutronix.de
Mon Apr 8 15:42:27 CEST 2019
to generate the host sysroot, its necessary to specify a different
architecture from the target architecture.
Add arch parameter which defaults to the buildimage arch
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/rfs.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/elbepack/rfs.py b/elbepack/rfs.py
index cbcfbd90..1878726d 100644
--- a/elbepack/rfs.py
+++ b/elbepack/rfs.py
@@ -110,7 +110,7 @@ class BuildEnv (object):
self.log.do("rm %s/etc/apt/trusted.gpg.d/elbe-localrepo.gpg" %
self.path)
- def debootstrap(self):
+ def debootstrap(self, arch="default"):
# pylint: disable=too-many-statements
# pylint: disable=too-many-branches
@@ -140,7 +140,8 @@ class BuildEnv (object):
self.log.h2("debootstrap log")
- arch = self.xml.text("project/buildimage/arch", key="arch")
+ if arch == "default":
+ arch = self.xml.text("project/buildimage/arch", key="arch")
host_arch = self.log.get_command_out(
"dpkg --print-architecture").strip()
--
2.11.0
More information about the elbe-devel
mailing list