mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
meson.build: Define QEMU_ARCH in config-target.h
Instead of using an ifdef ladder in arch_init.c (which we then have to manually update every time we add or remove a target architecture), have meson.build put "#define QEMU_ARCH QEMU_ARCH_FOO" in the config-target.h file. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210730105947.28215-5-peter.maydell@linaro.org
This commit is contained in:
parent
ed5d8c9d1c
commit
cb2c553152
2 changed files with 2 additions and 41 deletions
|
@ -1625,6 +1625,8 @@ foreach target : target_dirs
|
|||
config_target_data.set(k, v)
|
||||
endif
|
||||
endforeach
|
||||
config_target_data.set('QEMU_ARCH',
|
||||
'QEMU_ARCH_' + config_target['TARGET_BASE_ARCH'].to_upper())
|
||||
config_target_h += {target: configure_file(output: target + '-config-target.h',
|
||||
configuration: config_target_data)}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue