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 31 32syscall_nr_generators = {} 33 34subdir('alpha') 35subdir('arm') 36subdir('hppa') 37subdir('i386') 38subdir('m68k') 39subdir('microblaze') 40subdir('mips64') 41subdir('mips') 42subdir('ppc') 43subdir('s390x') 44subdir('sh4') 45subdir('sparc') 46subdir('x86_64') 47subdir('xtensa') 48 49specific_ss.add_all(when: 'CONFIG_LINUX_USER', if_true: linux_user_ss) 50