summaryrefslogtreecommitdiffstats
path: root/linux-user/ppc
diff options
context:
space:
mode:
authorMarc-André Lureau2019-08-18 14:13:08 +0200
committerPaolo Bonzini2020-08-21 12:30:38 +0200
commit3a30446aed8497b5928576c6d1aedba557363934 (patch)
treecc670735d6eb7f2b66d4da3b5e1f91c7168bb766 /linux-user/ppc
parentmeson: accel (diff)
downloadqemu-3a30446aed8497b5928576c6d1aedba557363934.tar.gz
qemu-3a30446aed8497b5928576c6d1aedba557363934.tar.xz
qemu-3a30446aed8497b5928576c6d1aedba557363934.zip
meson: linux-user
The most interesting or most complicated part here is the syscall_nr.h generators. In order to keep the generation logic all in meson.build, I am adding to config_target the name of the .tbl file, and making the generated file syscall<SUFFIX>_nr.h for input file syscall<SUFFIX>.tbl. For architectures where the input file is not named syscall_nr.tbl, syscall_nr.h has to be a source file; it's just a forwarder for x86 (i386/x86_64), while for MIPS64 it chooses between N32 and N64 ABIs. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-user/ppc')
-rw-r--r--linux-user/ppc/Makefile.objs6
-rw-r--r--linux-user/ppc/meson.build5
2 files changed, 5 insertions, 6 deletions
diff --git a/linux-user/ppc/Makefile.objs b/linux-user/ppc/Makefile.objs
deleted file mode 100644
index be92e67eb1..0000000000
--- a/linux-user/ppc/Makefile.objs
+++ /dev/null
@@ -1,6 +0,0 @@
-generated-files-y += linux-user/$(TARGET_ABI_DIR)/syscall_nr.h
-
-syshdr := $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscallhdr.sh
-
-%/syscall_nr.h: $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscall.tbl $(syshdr)
- $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
diff --git a/linux-user/ppc/meson.build b/linux-user/ppc/meson.build
new file mode 100644
index 0000000000..19fead7bc8
--- /dev/null
+++ b/linux-user/ppc/meson.build
@@ -0,0 +1,5 @@
+syscall_nr_generators += {
+ 'ppc': generator(sh,
+ arguments: [ meson.current_source_dir() / 'syscallhdr.sh', '@INPUT@', '@OUTPUT@', '@EXTRA_ARGS@' ],
+ output: '@BASENAME@_nr.h')
+}