| 1 |
bpf_protocols_files = [ |
| 2 |
'grundig', |
| 3 |
'imon_rsc', |
| 4 |
'manchester', |
| 5 |
'pulse_distance', |
| 6 |
'pulse_length', |
| 7 |
'raw', |
| 8 |
'rc_mm', |
| 9 |
'samsung36', |
| 10 |
'xbox-dvd', |
| 11 |
] |
| 12 |
|
| 13 |
bpf_args += run_command('cc_sys_includes.sh', |
| 14 |
cc.cmd_array(), |
| 15 |
check : true).stdout().split() |
| 16 |
|
| 17 |
foreach file : bpf_protocols_files |
| 18 |
output = file + '.o' |
| 19 |
input = file + '.c' |
| 20 |
custom_target(output, |
| 21 |
output : output, |
| 22 |
input : input, |
| 23 |
command : [ |
| 24 |
prog_bpf, |
| 25 |
bpf_args, |
| 26 |
'-D__linux__', '-fno-stack-protector', |
| 27 |
'-O2', '-c', '@INPUT@', '-o', '@OUTPUT@', |
| 28 |
], |
| 29 |
install : true, |
| 30 |
install_dir : ir_keytable_system_dir / 'rc_keymaps' / 'protocols') |
| 31 |
endforeach |