1 ddd = find_program('ddd', required: false)
2 gdb = find_program('gdb', required: false)
3 ocd = find_program('openocd', required: false)
4 objcopy = find_program('objcopy', required: false)
6 ocd_config = configure_file(
7 input: 'openocd.cfg.in',
10 configuration: {'BOARD': meson.get_external_property('openocd_board')})
12 gdb_config = configure_file(
17 'CROSS_NUM_BREAKPOINTS': meson.get_external_property('cross_num_breakpoints'),
18 'CROSS_NUM_WATCHPOINTS': meson.get_external_property('cross_num_watchpoints')})
20 ## For use externally ##########################################
22 flash_cmd = configure_file(
27 'OBJCOPY': objcopy.full_path(),
28 'OCD': ocd.full_path(),
29 'OCDCONF': meson.current_build_dir() / 'openocd.cfg',
30 'OFFSET': meson.get_external_property('cross_flash_offset')})
32 gdb_cmd = configure_file(
37 'OCD': ocd.full_path(),
38 'OCDCONF': meson.current_build_dir() / 'openocd.cfg',
39 'GDB': gdb.full_path(),
40 'GDBCONF': meson.current_build_dir() / 'gdb.conf'})
42 ddd_cmd = configure_file(
47 'OCD': ocd.full_path(),
48 'OCDCONF': meson.current_build_dir() / 'openocd.cfg',
49 'GDB': gdb.full_path(),
50 'GDBCONF': meson.current_build_dir() / 'gdb.conf',
51 'DDD': ddd.full_path()})