mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 21:40:49 +00:00
3a30446aed
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>
38 lines
634 B
Meson
38 lines
634 B
Meson
linux_user_ss.add(files(
|
|
'elfload.c',
|
|
'exit.c',
|
|
'fd-trans.c',
|
|
'linuxload.c',
|
|
'main.c',
|
|
'mmap.c',
|
|
'safe-syscall.S',
|
|
'signal.c',
|
|
'strace.c',
|
|
'syscall.c',
|
|
'uaccess.c',
|
|
'uname.c',
|
|
))
|
|
linux_user_ss.add(rt)
|
|
|
|
linux_user_ss.add(when: 'TARGET_HAS_BFLT', if_true: files('flatload.c'))
|
|
linux_user_ss.add(when: 'TARGET_I386', if_true: files('vm86.c'))
|
|
|
|
|
|
syscall_nr_generators = {}
|
|
|
|
subdir('alpha')
|
|
subdir('arm')
|
|
subdir('hppa')
|
|
subdir('i386')
|
|
subdir('m68k')
|
|
subdir('microblaze')
|
|
subdir('mips64')
|
|
subdir('mips')
|
|
subdir('ppc')
|
|
subdir('s390x')
|
|
subdir('sh4')
|
|
subdir('sparc64')
|
|
subdir('sparc')
|
|
subdir('x86_64')
|
|
subdir('xtensa')
|