[elbe-devel] [PATCH 06/10] rfs: allow specifying the architecture for BuildEnv.debootstrap()

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


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

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 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
> 
> 
> _______________________________________________
> 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