[PATCH v2 04/11] tests/tcg/configure.sh: make sure we pick up x86_64 cross compilers

Alex Bennée posted 11 patches 4 years, 10 months ago
[PATCH v2 04/11] tests/tcg/configure.sh: make sure we pick up x86_64 cross compilers
Posted by Alex Bennée 4 years, 10 months ago
While it's hard to find cross compilers packaged for arches other than
x86_64 the same cannot be said for the x86_64 compiler which is
available on Debians i386, arm64 and ppc64el release architectures.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 tests/tcg/configure.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh
index 87a9f24b20..90fd81f506 100755
--- a/tests/tcg/configure.sh
+++ b/tests/tcg/configure.sh
@@ -198,6 +198,11 @@ for target in $target_list; do
       container_image=debian-sparc64-cross
       container_cross_cc=sparc64-linux-gnu-gcc
       ;;
+    x86_64-*)
+      container_hosts="aarch64 ppc64el x86_64"
+      container_image=debian-amd64-cross
+      container_cross_cc=x86_64-linux-gnu-gcc
+      ;;
     xtensa*-softmmu)
       container_hosts=x86_64
       container_image=debian-xtensa-cross
-- 
2.20.1


Re: [PATCH v2 04/11] tests/tcg/configure.sh: make sure we pick up x86_64 cross compilers
Posted by Richard Henderson 4 years, 10 months ago
On 4/1/21 3:25 AM, Alex Bennée wrote:
> While it's hard to find cross compilers packaged for arches other than
> x86_64 the same cannot be said for the x86_64 compiler which is
> available on Debians i386, arm64 and ppc64el release architectures.
> 
> Signed-off-by: Alex Bennée<alex.bennee@linaro.org>
> ---
>   tests/tcg/configure.sh | 5 +++++
>   1 file changed, 5 insertions(+)

Dunno why only these 3 hosts, but what you have matches the data in 
packages.debian.org.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~

Re: [PATCH v2 04/11] tests/tcg/configure.sh: make sure we pick up x86_64 cross compilers
Posted by Alex Bennée 4 years, 10 months ago
Richard Henderson <richard.henderson@linaro.org> writes:

> On 4/1/21 3:25 AM, Alex Bennée wrote:
>> While it's hard to find cross compilers packaged for arches other than
>> x86_64 the same cannot be said for the x86_64 compiler which is
>> available on Debians i386, arm64 and ppc64el release architectures.
>> Signed-off-by: Alex Bennée<alex.bennee@linaro.org>
>> ---
>>   tests/tcg/configure.sh | 5 +++++
>>   1 file changed, 5 insertions(+)
>
> Dunno why only these 3 hosts, but what you have matches the data in
> packages.debian.org.

I did try and convince the packagers to build all the cross gcc's for
all the arches but they did point out (reasonably) that it would be
quite an explosion of binary size in the repos. But at least mainline
arches are getting better support in other mainline arches.

>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>
> r~


-- 
Alex Bennée