2021-10-09 01:47:37 +03:00
|
|
|
if not have_linux_user
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2021-11-17 18:32:06 +03:00
|
|
|
linux_user_ss = ss.source_set()
|
|
|
|
|
2021-12-21 18:20:32 +03:00
|
|
|
common_user_inc += include_directories('include/host/' / host_arch)
|
|
|
|
common_user_inc += include_directories('include')
|
2021-11-17 18:14:00 +03:00
|
|
|
|
2019-08-18 15:13:08 +03: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 18:26:14 +03:00
|
|
|
'thunk.c',
|
2019-08-18 15:13:08 +03:00
|
|
|
'uaccess.c',
|
|
|
|
'uname.c',
|
|
|
|
))
|
|
|
|
linux_user_ss.add(rt)
|
2023-01-12 18:20:12 +03:00
|
|
|
linux_user_ss.add(libdw)
|
2019-08-18 15:13:08 +03:00
|
|
|
|
|
|
|
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-09 01:42:48 +03:00
|
|
|
linux_user_ss.add(when: 'CONFIG_ARM_COMPATIBLE_SEMIHOSTING', if_true: files('semihost.c'))
|
2019-08-18 15:13:08 +03:00
|
|
|
|
|
|
|
syscall_nr_generators = {}
|
|
|
|
|
2021-06-18 00:30:09 +03:00
|
|
|
gen_vdso_exe = executable('gen-vdso', 'gen-vdso.c',
|
|
|
|
native: true, build_by_default: false)
|
|
|
|
gen_vdso = generator(gen_vdso_exe, output: '@BASENAME@.c.inc',
|
|
|
|
arguments: ['-o', '@OUTPUT@', '@EXTRA_ARGS@', '@INPUT@'])
|
|
|
|
|
2021-06-15 20:21:37 +03:00
|
|
|
subdir('aarch64')
|
2019-08-18 15:13:08 +03:00
|
|
|
subdir('alpha')
|
|
|
|
subdir('arm')
|
2024-09-20 18:10:32 +03:00
|
|
|
subdir('hexagon')
|
2019-08-18 15:13:08 +03:00
|
|
|
subdir('hppa')
|
|
|
|
subdir('i386')
|
2023-08-14 23:22:57 +03:00
|
|
|
subdir('loongarch64')
|
2019-08-18 15:13:08 +03:00
|
|
|
subdir('m68k')
|
|
|
|
subdir('microblaze')
|
|
|
|
subdir('mips64')
|
|
|
|
subdir('mips')
|
2024-09-20 18:10:30 +03:00
|
|
|
subdir('openrisc')
|
2019-08-18 15:13:08 +03:00
|
|
|
subdir('ppc')
|
2021-07-07 01:49:50 +03:00
|
|
|
subdir('riscv')
|
2019-08-18 15:13:08 +03:00
|
|
|
subdir('s390x')
|
|
|
|
subdir('sh4')
|
|
|
|
subdir('sparc')
|
|
|
|
subdir('x86_64')
|
|
|
|
subdir('xtensa')
|
2021-11-17 18:32:06 +03:00
|
|
|
|
|
|
|
specific_ss.add_all(when: 'CONFIG_LINUX_USER', if_true: linux_user_ss)
|