[elbe-devel] [PATCH 1/2] xmldefaults: Add "g++-" prefix and support for x86 for sdkarch

Torben Hohn torben.hohn at linutronix.de
Fri May 8 12:10:21 CEST 2020


On Mon, May 04, 2020 at 09:05:33AM -0400, Olivier Dion wrote:
> g++-x86-64-linux-gnu is an alias for g++ on amd64, but is not
> available from the cache, resulting in Elbe crashing when building SDK
> for amd64 target.  Thus in order to avoid work arounds, the
> definitions now provide the complete package name for g++.

please rename the field from "sdkarch" to "sdkgccpkg"

and then fold the 2 patches, and then 

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>
> ---
>  elbepack/xmldefaults.py | 18 ++++++++++--------
>  1 file changed, 10 insertions(+), 8 deletions(-)
> 
> diff --git a/elbepack/xmldefaults.py b/elbepack/xmldefaults.py
> index 3ca7102a..09212e62 100644
> --- a/elbepack/xmldefaults.py
> +++ b/elbepack/xmldefaults.py
> @@ -22,7 +22,7 @@ armel_defaults = {
>      "machine": "versatilepb",
>      "nicmodel": "smc91c111",
>      "triplet": "arm-linux-gnueabi",
> -    "sdkarch": "arm-linux-gnueabi",
> +    "sdkarch": "g++-arm-linux-gnueabi",
>      "elfcode": "ARM",
>  }
>  
> @@ -35,7 +35,7 @@ armel_linaro48_defaults = {
>      "machine": "versatilepb",
>      "nicmodel": "smc91c111",
>      "triplet": "arm-linux-gnueabi",
> -    "sdkarch": "arm-linux-gnueabi",
> +    "sdkarch": "g++-arm-linux-gnueabi",
>      "toolchaintype": "linaro_armel",
>      "toolchainver": "4.8.3",
>      "elfcode": "ARM",
> @@ -50,7 +50,7 @@ armel_virtio_defaults = {
>      "machine": "versatilepb",
>      "nicmodel": "smc91c111",
>      "triplet": "arm-linux-gnueabi",
> -    "sdkarch": "arm-linux-gnueabi",
> +    "sdkarch": "g++-arm-linux-gnueabi",
>      "elfcode": "ARM",
>  }
>  
> @@ -63,7 +63,7 @@ armhf_defaults = {
>      "machine": "versatilepb -cpu cortex-a9",
>      "nicmodel": "smc91c111",
>      "triplet": "arm-linux-gnueabihf",
> -    "sdkarch": "arm-linux-gnueabihf",
> +    "sdkarch": "g++-arm-linux-gnueabihf",
>      "elfcode": "ARM",
>  }
>  
> @@ -90,7 +90,7 @@ armhf_virtio_defaults = {
>      "machine": "versatilepb -cpu cortex-a9",
>      "nicmodel": "virtio",
>      "triplet": "arm-linux-gnueabihf",
> -    "sdkarch": "arm-linux-gnueabihf",
> +    "sdkarch": "g++-arm-linux-gnueabihf",
>      "elfcode": "ARM"
>  }
>  
> @@ -103,7 +103,7 @@ aarch64_defaults = {
>      "machine": "virt -cpu cortex-a57",
>      "nicmodel": "virtio",
>      "triplet": "aarch64-linux-gnu",
> -    "sdkarch": "aarch64-linux-gnu",
> +    "sdkarch": "g++-aarch64-linux-gnu",
>      "elfcode": "ARM aarch64",
>  }
>  
> @@ -116,7 +116,7 @@ ppc_defaults = {
>      "machine": "mac99",
>      "nicmodel": "rtl8139",
>      "triplet": "powerpc-linux-gnu",
> -    "sdkarch": "powerpc-linux-gnu",
> +    "sdkarch": "g++-powerpc-linux-gnu",
>      "elfcode": "PowerPC or cisco 4500",
>  }
>  
> @@ -140,7 +140,7 @@ ppc64el_defaults = {
>      "machine": "none",
>      "nicmodel": "virtio",
>      "triplet": "ppc64le-linux-gnu",
> -    "sdkarch": "powerpc64le-linux-gnu",
> +    "sdkarch": "g++-powerpc64le-linux-gnu",
>      "elfcode": "64-bit PowerPC or cisco 7500",
>  }
>  
> @@ -153,6 +153,7 @@ amd64_defaults = {
>      "machine": "pc",
>      "nicmodel": "virtio",
>      "triplet": "x86_64-linux-gnu",
> +    "sdkarch": "g++",
>  }
>  
>  i386_defaults = {
> @@ -163,6 +164,7 @@ i386_defaults = {
>      "machine": "pc",
>      "nicmodel": "virtio",
>      "triplet": "i386-linux-gnu",
> +    "sdkarch": "g++-i686-linux-gnu",
>  }
>  
>  archindep_defaults = {
> -- 
> 2.26.2
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list