| 1 | subdir('nwfpe') |
| 2 | |
| 3 | syscall_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 | |
| 13 | vdso_be8_inc = gen_vdso.process('vdso-be8.so', |
| 14 | extra_args: ['-s', 'sigreturn_codes', |
| 15 | '-p', 'vdso_be8']) |
| 16 | |
| 17 | vdso_be32_inc = gen_vdso.process('vdso-be32.so', |
| 18 | extra_args: ['-s', 'sigreturn_codes', |
| 19 | '-p', 'vdso_be32']) |
| 20 | |
| 21 | vdso_le_inc = gen_vdso.process('vdso-le.so', |
| 22 | extra_args: ['-s', 'sigreturn_codes']) |
| 23 | |
| 24 | linux_user_ss.add(when: 'TARGET_ARM', if_true: [ |
| 25 | vdso_be8_inc, vdso_be32_inc, vdso_le_inc |
| 26 | ]) |