diff options
author | Paolo Bonzini | 2020-08-07 12:10:23 +0200 |
---|---|---|
committer | Paolo Bonzini | 2020-08-21 12:30:35 +0200 |
commit | abff1abfe8113a989215ed33c48839a827e531f1 (patch) | |
tree | fb31d57aff267871822d237052c264788664047e /target/nios2 | |
parent | meson: convert hw/arch* (diff) | |
download | qemu-abff1abfe8113a989215ed33c48839a827e531f1.tar.gz qemu-abff1abfe8113a989215ed33c48839a827e531f1.tar.xz qemu-abff1abfe8113a989215ed33c48839a827e531f1.zip |
meson: target
Similar to hw_arch, each architecture defines two sourceset which are placed in
dictionaries target_arch and target_softmmu_arch. These are then 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>
Diffstat (limited to 'target/nios2')
-rw-r--r-- | target/nios2/Makefile.objs | 4 | ||||
-rw-r--r-- | target/nios2/meson.build | 15 |
2 files changed, 15 insertions, 4 deletions
diff --git a/target/nios2/Makefile.objs b/target/nios2/Makefile.objs deleted file mode 100644 index 010de0e7a6..0000000000 --- a/target/nios2/Makefile.objs +++ /dev/null @@ -1,4 +0,0 @@ -obj-y += translate.o op_helper.o helper.o cpu.o mmu.o nios2-semi.o -obj-$(CONFIG_SOFTMMU) += monitor.o - -$(obj)/op_helper.o: QEMU_CFLAGS += $(HELPER_CFLAGS) diff --git a/target/nios2/meson.build b/target/nios2/meson.build new file mode 100644 index 0000000000..e643917db1 --- /dev/null +++ b/target/nios2/meson.build @@ -0,0 +1,15 @@ +nios2_ss = ss.source_set() +nios2_ss.add(files( + 'cpu.c', + 'helper.c', + 'mmu.c', + 'nios2-semi.c', + 'op_helper.c', + 'translate.c', +)) + +nios2_softmmu_ss = ss.source_set() +nios2_softmmu_ss.add(files('monitor.c')) + +target_arch += {'nios2': nios2_ss} +target_softmmu_arch += {'nios2': nios2_softmmu_ss} |