meson: convert hw/arch*

Each architecture's sourceset is placed in an hw_arch dictionary, and picked up
from there when building the per-emulator static_library.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Marc-André Lureau 2019-08-17 13:55:58 +04:00 committed by Paolo Bonzini
parent b2c00bce54
commit 2c44220d05
55 changed files with 399 additions and 236 deletions

View file

@ -1,3 +0,0 @@
# LM32 boards
obj-$(CONFIG_LM32) += lm32_boards.o
obj-$(CONFIG_MILKYMIST) += milkymist.o

6
hw/lm32/meson.build Normal file
View file

@ -0,0 +1,6 @@
lm32_ss = ss.source_set()
# LM32 boards
lm32_ss.add(when: 'CONFIG_LM32', if_true: files('lm32_boards.c'))
lm32_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist.c'))
hw_arch += {'lm32': lm32_ss}