xref: /openbmc/qemu/linux-user/meson.build (revision 2e1cacfb)
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)
25linux_user_ss.add(libdw)
26
27linux_user_ss.add(when: 'TARGET_HAS_BFLT', if_true: files('flatload.c'))
28linux_user_ss.add(when: 'TARGET_I386', if_true: files('vm86.c'))
29linux_user_ss.add(when: 'CONFIG_ARM_COMPATIBLE_SEMIHOSTING', if_true: files('semihost.c'))
30
31syscall_nr_generators = {}
32
33gen_vdso_exe = executable('gen-vdso', 'gen-vdso.c',
34                          native: true, build_by_default: false)
35gen_vdso = generator(gen_vdso_exe, output: '@BASENAME@.c.inc',
36                     arguments: ['-o', '@OUTPUT@', '@EXTRA_ARGS@', '@INPUT@'])
37
38subdir('aarch64')
39subdir('alpha')
40subdir('arm')
41subdir('hexagon')
42subdir('hppa')
43subdir('i386')
44subdir('loongarch64')
45subdir('m68k')
46subdir('microblaze')
47subdir('mips64')
48subdir('mips')
49subdir('openrisc')
50subdir('ppc')
51subdir('riscv')
52subdir('s390x')
53subdir('sh4')
54subdir('sparc')
55subdir('x86_64')
56subdir('xtensa')
57
58specific_ss.add_all(when: 'CONFIG_LINUX_USER', if_true: linux_user_ss)
59