2021-10-09 00:47:37 +02:00
|
|
|
if not have_linux_user
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2021-11-17 16:32:06 +01:00
|
|
|
linux_user_ss = ss.source_set()
|
|
|
|
|
2021-12-21 16:20:32 +01:00
|
|
|
common_user_inc += include_directories('include/host/' / host_arch)
|
|
|
|
common_user_inc += include_directories('include')
|
2021-11-17 16:14:00 +01:00
|
|
|
|
2019-08-18 14:13:08 +02:00
|
|
|
linux_user_ss.add(files(
|
|
|
|
'elfload.c',
|
|
|
|
'exit.c',
|
|
|
|
'fd-trans.c',
|
|
|
|
'linuxload.c',
|
|
|
|
'main.c',
|
|
|
|
'mmap.c',
|
|
|
|
'signal.c',
|
|
|
|
'strace.c',
|
|
|
|
'syscall.c',
|
2021-11-17 16:26:14 +01:00
|
|
|
'thunk.c',
|
2019-08-18 14:13:08 +02:00
|
|
|
'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'))
|
2021-01-08 23:42:48 +01:00
|
|
|
linux_user_ss.add(when: 'CONFIG_ARM_COMPATIBLE_SEMIHOSTING', if_true: files('semihost.c'))
|
2019-08-18 14:13:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
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')
|
2021-11-17 16:32:06 +01:00
|
|
|
|
|
|
|
specific_ss.add_all(when: 'CONFIG_LINUX_USER', if_true: linux_user_ss)
|