xref: /openbmc/qemu/linux-user/meson.build (revision df22fbb7)
1if not have_linux_user
2   subdir_done()
3endif
4
5linux_user_ss = ss.source_set()
6
7common_user_inc += include_directories('include/host/' / host_arch)
8common_user_inc += include_directories('include')
9
10linux_user_ss.add(files(
11  'elfload.c',
12  'exit.c',
13  'fd-trans.c',
14  'linuxload.c',
15  'main.c',
16  'mmap.c',
17  'signal.c',
18  'strace.c',
19  'syscall.c',
20  'thunk.c',
21  'uaccess.c',
22  'uname.c',
23))
24linux_user_ss.add(rt)
25
26linux_user_ss.add(when: 'TARGET_HAS_BFLT', if_true: files('flatload.c'))
27linux_user_ss.add(when: 'TARGET_I386', if_true: files('vm86.c'))
28linux_user_ss.add(when: 'CONFIG_ARM_COMPATIBLE_SEMIHOSTING', if_true: files('semihost.c'))
29
30
31syscall_nr_generators = {}
32
33subdir('alpha')
34subdir('arm')
35subdir('hppa')
36subdir('i386')
37subdir('m68k')
38subdir('microblaze')
39subdir('mips64')
40subdir('mips')
41subdir('ppc')
42subdir('s390x')
43subdir('sh4')
44subdir('sparc')
45subdir('x86_64')
46subdir('xtensa')
47
48specific_ss.add_all(when: 'CONFIG_LINUX_USER', if_true: linux_user_ss)
49