[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 26/29] tests/tcg/configure.sh: add handling for assembler only
From: |
Alex Bennée |
Subject: |
[PATCH v1 26/29] tests/tcg/configure.sh: add handling for assembler only builds |
Date: |
Wed, 21 Jul 2021 00:27:00 +0100 |
Up until this point we only handled local compilers or assumed we had
everything in the container. This falls down when we are building QEMU
inside the container.
This special handling only affects tricore for now but I put it in a
case just in case we add any other "special" targets. Setting
CROSS_CC_GUEST is a bit of a hack just to ensure the test runs as we
gate on a detected compiler even though the Makefile won't actually
use it. It also means we display something sane in the configure
output.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210720114057.32053-3-alex.bennee@linaro.org>
---
tests/tcg/configure.sh | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh
index aa7c24328a..1f985ccfc0 100755
--- a/tests/tcg/configure.sh
+++ b/tests/tcg/configure.sh
@@ -72,6 +72,10 @@ fi
: ${cross_cc_x86_64="x86_64-linux-gnu-gcc"}
: ${cross_cc_cflags_x86_64="-m64"}
+# tricore is special as it doesn't have a compiler
+: ${cross_as_tricore="tricore-as"}
+: ${cross_ld_tricore="tricore-ld"}
+
for target in $target_list; do
arch=${target%%-*}
@@ -247,6 +251,20 @@ for target in $target_list; do
fi
fi
fi
+
+ # Special handling for assembler only tests
+ eval "target_as=\"\${cross_as_$arch}\""
+ eval "target_ld=\"\${cross_ld_$arch}\""
+ if has $target_as && has $target_ld; then
+ case $target in
+ tricore-softmmu)
+ echo "CROSS_CC_GUEST=$target_as" >> $config_target_mak
+ echo "CROSS_AS_GUEST=$target_as" >> $config_target_mak
+ echo "CROSS_LD_GUEST=$target_ld" >> $config_target_mak
+ got_cross_cc=yes
+ ;;
+ esac
+ fi
fi
if test $got_cross_cc = yes; then
--
2.32.0.264.g75ae10bc75
- [PATCH v1 23/29] plugins/cache: Fixed "function decl. is not a prototype" warnings, (continued)
- [PATCH v1 23/29] plugins/cache: Fixed "function decl. is not a prototype" warnings, Alex Bennée, 2021/07/20
- [PATCH v1 11/29] contrib/gitdm: add domain-map for Eldorado, Alex Bennée, 2021/07/20
- [PATCH v1 17/29] contrib/gitdm: add an explicit academic entry for BU, Alex Bennée, 2021/07/20
- [PATCH v1 15/29] contrib/gitdm: add domain-map for NVIDIA, Alex Bennée, 2021/07/20
- [PATCH v1 19/29] contrib/gitdm: add more individual contributor entries., Alex Bennée, 2021/07/20
- [PATCH v1 25/29] hw/tricore: fix inclusion of tricore_testboard, Alex Bennée, 2021/07/20
- [PATCH v1 27/29] gitlab: enable a very minimal build with the tricore container, Alex Bennée, 2021/07/20
- [PATCH v1 26/29] tests/tcg/configure.sh: add handling for assembler only builds,
Alex Bennée <=
- [PATCH v1 22/29] plugins/cache: limited the scope of a mutex lock, Alex Bennée, 2021/07/20
- [PATCH v1 14/29] contrib/gitdm: add domain-map for Crudebyte, Alex Bennée, 2021/07/20
- [PATCH v1 24/29] plugins: Fix physical address calculation for IO regions, Alex Bennée, 2021/07/20
- [PATCH v1 18/29] contrib/gitdm: add a new interns group-map for GSoC/Outreachy work, Alex Bennée, 2021/07/20
- [PATCH v1 16/29] contrib/gitdm: add group-map for Netflix, Alex Bennée, 2021/07/20
- [PATCH v1 21/29] plugins/cache: Fixed a bug with destroying FIFO metadata, Alex Bennée, 2021/07/20
- [PATCH v1 20/29] tcg/plugins: implement a qemu_plugin_user_exit helper, Alex Bennée, 2021/07/20
- [PATCH v1 29/29] gitlab-ci: Extract OpenSBI job rules to reusable section, Alex Bennée, 2021/07/20
- [PATCH v1 28/29] gitlab-ci: Remove the second superfluous macos task, Alex Bennée, 2021/07/20