xref: /openbmc/qemu/linux-user/arm/meson.build (revision 7d87775f)
1subdir('nwfpe')
2
3syscall_nr_generators += {
4  'arm': generator(sh,
5                   arguments: [ meson.current_source_dir() / 'syscallhdr.sh', '@INPUT@', '@OUTPUT@', '@EXTRA_ARGS@' ],
6                   output: '@BASENAME@_nr.h')
7}
8
9# TARGET_BIG_ENDIAN is defined to 'n' for little-endian; which means it
10# is always true as far as source_set.apply() is concerned.  Always build
11# both header files and include the right one via #if.
12
13vdso_be8_inc = gen_vdso.process('vdso-be8.so',
14                               extra_args: ['-s', 'sigreturn_codes',
15                                            '-p', 'vdso_be8'])
16
17vdso_be32_inc = gen_vdso.process('vdso-be32.so',
18                               extra_args: ['-s', 'sigreturn_codes',
19                                            '-p', 'vdso_be32'])
20
21vdso_le_inc = gen_vdso.process('vdso-le.so',
22                               extra_args: ['-s', 'sigreturn_codes'])
23
24linux_user_ss.add(when: 'TARGET_ARM', if_true: [
25    vdso_be8_inc, vdso_be32_inc, vdso_le_inc
26])
27