bbf15aaf7c
Move linux-user safe-syscall.S and safe-syscall-error.c to common-user so that bsd-user can also use it. Also move safe-syscall.h to include/user/. Since there is nothing here that is related to the guest, as opposed to the host, build it once. Reviewed-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
44 lines
839 B
Meson
44 lines
839 B
Meson
if not have_linux_user
|
|
subdir_done()
|
|
endif
|
|
|
|
common_user_inc += include_directories('host/' / host_arch)
|
|
common_user_inc += include_directories('.')
|
|
|
|
linux_user_ss.add(files(
|
|
'elfload.c',
|
|
'exit.c',
|
|
'fd-trans.c',
|
|
'linuxload.c',
|
|
'main.c',
|
|
'mmap.c',
|
|
'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'))
|
|
linux_user_ss.add(when: 'CONFIG_ARM_COMPATIBLE_SEMIHOSTING', if_true: files('semihost.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('sparc')
|
|
subdir('x86_64')
|
|
subdir('xtensa')
|