Skip to contentSkip to conversation

accel/qtest: Build once as common object

PATCH In review Philippe Mathieu-Daudé 2 participants 3 messages Feb 25 – Mar 9 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 accel/qtest: Build once as common object

No code within qtest.c uses target-specific knowledge:
build it once as target-agnostic common unit.

---
 meson.build             | 3 ---
 accel/qtest/meson.build | 5 ++++-
 2 files changed, 4 insertions(+), 4 deletions(-)
meson.build +0 -3
index 5fecd6103a6..033d8cc1a0a 100644
@@ -3867,9 +3867,6 @@ subdir('linux-user')
 subdir('tests/qtest/libqos')
 subdir('tests/qtest/fuzz')
 
-# accel modules
-target_modules += { 'accel' : { 'qtest': qtest_module_ss }}
-
 ##############################################
 # Internal static_libraries and dependencies #
 ##############################################
accel/qtest/meson.build +4 -1
index 2018de8a05d..e1b089e02c7 100644
@@ -1 +1,4 @@
-qtest_module_ss.add(when: ['CONFIG_SYSTEM_ONLY'], if_true: files('qtest.c'))
+qtest_module_ss = ss.source_set()
+qtest_module_ss.add(files('qtest.c'))
+
+modules += {'accel': {'qtest': qtest_module_ss}}
Signature · 1 line
2.52.0