[elbe-devel] [PATCH 07/10] rfs: add arch parameter to BuildEnv constructor

Torben Hohn torben.hohn at linutronix.de
Mon Apr 8 15:42:28 CEST 2019


host sysroot shall be generated via the BuildEnv machinery also.
Allow passing the architecture to the debootstrap call from the
constructor.

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 1878726d..a4f27b40 100644
--- a/elbepack/rfs.py
+++ b/elbepack/rfs.py
@@ -23,7 +23,7 @@ class DebootstrapException (Exception):
 
 
 class BuildEnv (object):
-    def __init__(self, xml, log, path, build_sources=False, clean=False):
+    def __init__(self, xml, log, path, build_sources=False, clean=False, arch="default"):
 
         # pylint: disable=too-many-arguments
 
@@ -31,6 +31,7 @@ class BuildEnv (object):
         self.log = log
         self.path = path
         self.rpcaptcache = None
+        self.arch = arch
 
         self.rfs = BuildImgFs(path, xml.defs["userinterpr"])
 
@@ -45,7 +46,7 @@ class BuildEnv (object):
                 "usr/sbin/policy-rc.d",
                 0o755,
                 "#!/bin/sh\nexit 101\n")
-            self.debootstrap()
+            self.debootstrap(arch)
             self.fresh_debootstrap = True
             self.need_dumpdebootstrap = True
         else:
-- 
2.11.0




More information about the elbe-devel mailing list