[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v17 06/14] meson: add target_user_arch
From: |
Claudio Fontana |
Subject: |
[RFC v17 06/14] meson: add target_user_arch |
Date: |
Wed, 10 Feb 2021 16:28:51 +0100 |
the lack of target_user_arch makes it hard to fully leverage the
build system in order to separate user code from softmmu code.
Provide it, so that we can avoid the proliferation of #ifdef
in target code.
Signed-off-by: Claudio Fontana <cfontana@suse.de>
---
meson.build | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meson.build b/meson.build
index e3ef660670..a1582e0cbc 100644
--- a/meson.build
+++ b/meson.build
@@ -1733,6 +1733,7 @@ modules = {}
hw_arch = {}
target_arch = {}
target_softmmu_arch = {}
+target_user_arch = {}
###############
# Trace files #
@@ -2129,6 +2130,10 @@ foreach target : target_dirs
abi = config_target['TARGET_ABI_DIR']
target_type='user'
qemu_target_name = 'qemu-' + target_name
+ t = target_user_arch[arch].apply(config_target, strict: false)
+ arch_srcs += t.sources()
+ arch_deps += t.dependencies()
+
if 'CONFIG_LINUX_USER' in config_target
base_dir = 'linux-user'
target_inc += include_directories('linux-user/host/' /
config_host['ARCH'])
--
2.26.2
- [RFC v17 00/14] i386 cleanup PART 2, Claudio Fontana, 2021/02/10
- [RFC v17 02/14] cpu: call AccelCPUClass::cpu_realizefn in cpu_exec_realizefn, Claudio Fontana, 2021/02/10
- [RFC v17 04/14] target/i386: fix host_cpu_adjust_phys_bits error handling, Claudio Fontana, 2021/02/10
- [RFC v17 03/14] accel: introduce new accessor functions, Claudio Fontana, 2021/02/10
- [RFC v17 08/14] i386: split smm helper (softmmu), Claudio Fontana, 2021/02/10
- [RFC v17 06/14] meson: add target_user_arch,
Claudio Fontana <=
- [RFC v17 01/14] i386: split cpu accelerators from cpu.c, using AccelCPUClass, Claudio Fontana, 2021/02/10
- [RFC v17 05/14] accel-cpu: make cpu_realizefn return a bool, Claudio Fontana, 2021/02/10
- [RFC v17 07/14] i386: split user and softmmu functionality in tcg-cpu, Claudio Fontana, 2021/02/10
- [RFC v17 09/14] i386: split tcg excp_helper into softmmu and user parts, Claudio Fontana, 2021/02/10
- [RFC v17 12/14] i386: separate fpu_helper into user and softmmu parts, Claudio Fontana, 2021/02/10
- [RFC v17 11/14] i386: split misc helper into user and softmmu parts, Claudio Fontana, 2021/02/10
- [RFC v17 10/14] i386: split tcg btp_helper into softmmu and user parts, Claudio Fontana, 2021/02/10