[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/7] meson.build: expose TCG cross compiler information in summary
From: |
Alex Bennée |
Subject: |
[PULL 1/7] meson.build: expose TCG cross compiler information in summary |
Date: |
Wed, 24 Feb 2021 11:49:20 +0000 |
Blink and you miss the cross TCG compiler stuff so lets display it
with the rest of the compiler information.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210222101455.12640-2-alex.bennee@linaro.org>
diff --git a/meson.build b/meson.build
index 05a67c20d9..f3db83e974 100644
--- a/meson.build
+++ b/meson.build
@@ -2509,6 +2509,24 @@ endif
summary_info += {'strip binaries': get_option('strip')}
summary_info += {'sparse': sparse.found() ? sparse.full_path() :
false}
summary_info += {'mingw32 support': targetos == 'windows'}
+
+# snarf the cross-compilation information for tests
+foreach target: target_dirs
+ tcg_mak = meson.current_build_dir() / 'tests/tcg' / 'config-' + target +
'.mak'
+ if fs.exists(tcg_mak)
+ config_cross_tcg = keyval.load(tcg_mak)
+ target = config_cross_tcg['TARGET_NAME']
+ compiler = ''
+ if 'DOCKER_CROSS_CC_GUEST' in config_cross_tcg
+ summary_info += {target + ' tests':
config_cross_tcg['DOCKER_CROSS_CC_GUEST'] +
+ ' via ' +
config_cross_tcg['DOCKER_IMAGE']}
+ elif 'CROSS_CC_GUEST' in config_cross_tcg
+ summary_info += {target + ' tests'
+ : config_cross_tcg['CROSS_CC_GUEST'] }
+ endif
+ endif
+endforeach
+
summary(summary_info, bool_yn: true, section: 'Compilation')
# Targets and accelerators
diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh
index 551c02f469..36b8a73a54 100755
--- a/tests/tcg/configure.sh
+++ b/tests/tcg/configure.sh
@@ -263,11 +263,3 @@ for target in $target_list; do
echo "DOCKER_CROSS_CC_GUEST=$container_cross_cc" >> $config_target_mak
fi
done
-
-# report container support state
-echo "cross containers $container"
-
-if test -n "$enabled_cross_compilers"; then
- echo
- echo "NOTE: guest cross-compilers enabled:$enabled_cross_compilers"
-fi
--
2.20.1
- [PULL 0/7] testing updates (build, docs, dumps), Alex Bennée, 2021/02/24
- [PULL 1/7] meson.build: expose TCG cross compiler information in summary,
Alex Bennée <=
- [PULL 2/7] docker: Bump Fedora images to release 33, Alex Bennée, 2021/02/24
- [PULL 3/7] tests/acceptance: allow a "graceful" failing for virtio-gpu test, Alex Bennée, 2021/02/24
- [PULL 6/7] docs/devel: add forward reference to check-tcg, Alex Bennée, 2021/02/24
- [PULL 7/7] docs: move CODING_STYLE into the developer documentation, Alex Bennée, 2021/02/24
- [PULL 4/7] docs/devel: expand on use of containers to build tests, Alex Bennée, 2021/02/24
- [PULL 5/7] docs/devel: update the container based tests, Alex Bennée, 2021/02/24