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

Manuel Traut manut at linutronix.de
Wed Apr 10 10:46:40 CEST 2019


On 15:42 Mon 08 Apr     , Torben Hohn wrote:
> 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>

Reviewed-by: Manuel Traut <manut 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
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel



More information about the elbe-devel mailing list