1bpf_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 13clang_sys_includes = run_command('clang_sys_includes.sh', 14 check : true, 15 env : ['CLANG=' + prog_clang.full_path()]) 16 17foreach 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_clang, 25 clang_sys_includes.stdout().split(), 26 '-D__linux__', '-fno-stack-protector', '-target', 'bpf', 27 '-O2', '-c', '@INPUT@', '-o', '@OUTPUT@', 28 ], 29 install : true, 30 install_dir : ir_keytable_system_dir / 'rc_keymaps' / 'protocols') 31endforeach 32