diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2021-07-30 11:59:43 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-08-26 17:02:00 +0100 |
commit | cb2c553152d3c78eb08b1393ae074acdfd43eda9 (patch) | |
tree | 3800e13732237473690f8c1a31775d655341cefd /meson.build | |
parent | ed5d8c9d1c38d4022294741eb759d42bd7690948 (diff) | |
download | qemu-cb2c553152d3c78eb08b1393ae074acdfd43eda9.zip qemu-cb2c553152d3c78eb08b1393ae074acdfd43eda9.tar.gz qemu-cb2c553152d3c78eb08b1393ae074acdfd43eda9.tar.bz2 |
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
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meson.build b/meson.build index b3e7ec0..bf63784 100644 --- a/meson.build +++ b/meson.build @@ -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)} |