| Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 1 | project('flashprogutils', 'c', |
| Nikolai Artemiev | 47cb6fc | 2022-07-22 09:58:14 +1000 | [diff] [blame] | 2 | version : run_command('util/getversion.sh', '--version', check : true).stdout().strip(), |
| Nico Huber | b417c0c | 2019-09-24 22:12:40 +0200 | [diff] [blame] | 3 | license : 'GPL-2.0', |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 4 | meson_version : '>=0.53.0', |
| Anastasia Klimchuk | 3c50843 | 2022-04-13 15:15:24 +1000 | [diff] [blame] | 5 | default_options : [ |
| 6 | 'warning_level=2', |
| 7 | 'c_std=c99', |
| Anastasia Klimchuk | c676be9 | 2022-04-26 14:53:18 +1000 | [diff] [blame] | 8 | 'werror=true', |
| Anastasia Klimchuk | 3c50843 | 2022-04-13 15:15:24 +1000 | [diff] [blame] | 9 | 'optimization=s', |
| Nikolai Artemiev | 47cb6fc | 2022-07-22 09:58:14 +1000 | [diff] [blame] | 10 | 'debug=false', |
| 11 | ], |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 12 | ) |
| 13 | |
| 14 | # libtool versioning |
| 15 | lt_current = '1' |
| 16 | lt_revision = '0' |
| 17 | lt_age = '0' |
| 18 | lt_version = '@0@.@1@.@2@'.format(lt_current, lt_age, lt_revision) |
| 19 | |
| Jacob Garber | 4a84ec2 | 2019-07-25 19:12:31 -0600 | [diff] [blame] | 20 | # hide/enable some warnings |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 21 | warning_flags = [ |
| Anastasia Klimchuk | cde7011 | 2021-10-25 13:20:26 +1100 | [diff] [blame] | 22 | '-Wshadow', |
| 23 | '-Wmissing-prototypes', |
| Jacob Garber | 4a84ec2 | 2019-07-25 19:12:31 -0600 | [diff] [blame] | 24 | '-Wwrite-strings', |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 25 | '-Wno-unused-parameter', |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 26 | '-Wno-address-of-packed-member', |
| 27 | '-Wno-enum-conversion', |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 28 | '-Wno-missing-braces', |
| 29 | ] |
| 30 | |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 31 | cc = meson.get_compiler('c') |
| 32 | add_project_arguments(cc.get_supported_arguments(warning_flags), language : 'c') |
| 33 | add_project_arguments('-D_DEFAULT_SOURCE', language : 'c') |
| Rosen Penev | 566193f | 2020-07-18 12:50:16 -0700 | [diff] [blame] | 34 | add_project_arguments('-D_POSIX_C_SOURCE=200809L', language : 'c') # required for fileno, nanosleep, and strndup |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 35 | add_project_arguments('-D_BSD_SOURCE', language : 'c') # required for glibc < v2.19 |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 36 | add_project_arguments('-D__BSD_VISIBLE', language : 'c') # required for u_char, u_int, u_long on FreeBSD |
| 37 | add_project_arguments('-D__XSI_VISIBLE', language : 'c') # required for gettimeofday() on FreeBSD |
| 38 | add_project_arguments('-D_NETBSD_SOURCE', language : 'c') # required for indirect include of strings.h on NetBSD |
| 39 | add_project_arguments('-D_DARWIN_C_SOURCE', language : 'c') # required for indirect include of strings.h on MacOS |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 40 | |
| 41 | # get defaults from configure |
| Thomas Heijligen | b975da1 | 2022-08-13 12:10:05 +0200 | [diff] [blame] | 42 | config_print_wiki = get_option('classic_cli_print_wiki') |
| Thomas Heijligen | 84e9c91 | 2021-06-01 16:22:14 +0200 | [diff] [blame] | 43 | config_default_programmer_name = get_option('default_programmer_name') |
| 44 | config_default_programmer_args = get_option('default_programmer_args') |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 45 | |
| 46 | cargs = [] |
| 47 | deps = [] |
| Thomas Heijligen | 51208f3 | 2022-04-28 11:07:29 +0200 | [diff] [blame] | 48 | srcs = files( |
| 49 | '82802ab.c', |
| 50 | 'at45db.c', |
| 51 | 'bitbang_spi.c', |
| 52 | 'edi.c', |
| 53 | 'en29lv640b.c', |
| 54 | 'flashchips.c', |
| Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 55 | 'flashprog.c', |
| Thomas Heijligen | 51208f3 | 2022-04-28 11:07:29 +0200 | [diff] [blame] | 56 | 'fmap.c', |
| 57 | 'helpers.c', |
| Edward O'Callaghan | 4c76c73 | 2022-08-12 11:03:00 +1000 | [diff] [blame] | 58 | 'helpers_fileio.c', |
| Thomas Heijligen | 51208f3 | 2022-04-28 11:07:29 +0200 | [diff] [blame] | 59 | 'ich_descriptors.c', |
| 60 | 'jedec.c', |
| 61 | 'layout.c', |
| Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 62 | 'libflashprog.c', |
| Nico Huber | 0e76d99 | 2023-01-12 20:22:55 +0100 | [diff] [blame] | 63 | 'memory_bus.c', |
| Thomas Heijligen | 51208f3 | 2022-04-28 11:07:29 +0200 | [diff] [blame] | 64 | 'opaque.c', |
| Edward O'Callaghan | 63f6a37 | 2022-08-12 12:56:43 +1000 | [diff] [blame] | 65 | 'parallel.c', |
| Thomas Heijligen | 51208f3 | 2022-04-28 11:07:29 +0200 | [diff] [blame] | 66 | 'print.c', |
| 67 | 'programmer.c', |
| 68 | 'programmer_table.c', |
| 69 | 'sfdp.c', |
| 70 | 'spi25.c', |
| Nico Huber | 8d0f465 | 2024-05-04 18:52:51 +0200 | [diff] [blame] | 71 | 'spi25_prepare.c', |
| Thomas Heijligen | 51208f3 | 2022-04-28 11:07:29 +0200 | [diff] [blame] | 72 | 'spi25_statusreg.c', |
| 73 | 'spi95.c', |
| 74 | 'spi.c', |
| 75 | 'sst28sf040.c', |
| 76 | 'sst49lfxxxc.c', |
| 77 | 'sst_fwhub.c', |
| 78 | 'stm50.c', |
| 79 | 'udelay.c', |
| 80 | 'w29ee011.c', |
| 81 | 'w39.c', |
| 82 | 'writeprotect.c', |
| 83 | 'writeprotect_ranges.c', |
| 84 | ) |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 85 | |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 86 | # check for required symbols |
| 87 | if cc.has_function('clock_gettime') |
| 88 | add_project_arguments('-DHAVE_CLOCK_GETTIME=1', language : 'c') |
| 89 | endif |
| 90 | if cc.has_function('strnlen') |
| 91 | add_project_arguments('-DHAVE_STRNLEN=1', language : 'c') |
| 92 | endif |
| 93 | if cc.check_header('sys/utsname.h') |
| 94 | add_project_arguments('-DHAVE_UTSNAME=1', language : 'c') |
| 95 | endif |
| Thomas Heijligen | c02b1a9 | 2022-04-25 14:54:10 +0200 | [diff] [blame] | 96 | if host_machine.system() in ['cygwin', 'windows'] |
| 97 | add_project_arguments('-DIS_WINDOWS=1', language : 'c') |
| 98 | else |
| 99 | add_project_arguments('-DIS_WINDOWS=0', language : 'c') |
| 100 | endif |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 101 | |
| Peter Stuge | 272b073 | 2022-12-11 03:55:02 +0100 | [diff] [blame] | 102 | if host_machine.system() == 'linux' |
| 103 | custom_baud_c = 'custom_baud_linux.c' |
| Peter Stuge | b8ee2d6 | 2022-12-11 16:20:16 +0100 | [diff] [blame] | 104 | elif host_machine.system() == 'darwin' |
| 105 | custom_baud_c = 'custom_baud_darwin.c' |
| Peter Stuge | 272b073 | 2022-12-11 03:55:02 +0100 | [diff] [blame] | 106 | else |
| 107 | custom_baud_c = 'custom_baud.c' |
| 108 | endif |
| 109 | |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 110 | systems_hwaccess = [ 'linux', 'openbsd', 'freebsd', 'dragonfly', 'netbsd' ] |
| 111 | systems_serial = [ 'linux', 'openbsd', 'freebsd', 'dragonfly', 'netbsd', 'darwin' ] |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 112 | |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 113 | cpus_port_io = [ 'x86', 'x86_64' ] |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 114 | cpus_raw_mem = [ 'x86', 'x86_64', 'mips', 'mips64', 'ppc', 'ppc64', 'arm', 'aarch64', 'sparc', 'sparc64', 'arc', 'e2k' ] |
| Peter Marheine | 306c8b7 | 2022-01-21 02:07:30 +0000 | [diff] [blame] | 115 | |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 116 | group_ftdi = get_option('programmer').contains('group_ftdi') |
| 117 | group_pci = get_option('programmer').contains('group_pci') |
| 118 | group_usb = get_option('programmer').contains('group_usb') |
| 119 | group_i2c = get_option('programmer').contains('group_i2c') |
| 120 | group_serial = get_option('programmer').contains('group_serial') |
| 121 | group_jlink = get_option('programmer').contains('group_jlink') |
| Steve Markgraf | 6189947 | 2023-01-09 23:06:52 +0100 | [diff] [blame] | 122 | group_gpiod = get_option('programmer').contains('group_gpiod') |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 123 | group_internal = get_option('programmer').contains('group_internal') |
| 124 | group_external = get_option('programmer').contains('group_external') |
| Peter Marheine | 306c8b7 | 2022-01-21 02:07:30 +0000 | [diff] [blame] | 125 | |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 126 | libpci = dependency('libpci', required : group_pci, static : (host_machine.system() == 'openbsd' ? true : false)) # On openbsd a static version of libpci is needed to get also -libz |
| 127 | libusb1 = dependency('libusb-1.0', required : group_usb) |
| 128 | libftdi1 = dependency('libftdi1', required : group_ftdi) |
| 129 | libjaylink = dependency('libjaylink', required : group_jlink) |
| Steve Markgraf | 6189947 | 2023-01-09 23:06:52 +0100 | [diff] [blame] | 130 | libgpiod = dependency('libgpiod', required : group_gpiod) |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 131 | |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 132 | subdir('platform') |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 133 | |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 134 | if systems_hwaccess.contains(host_machine.system()) |
| Thomas Heijligen | 4bd966c | 2022-05-16 10:56:55 +0200 | [diff] [blame] | 135 | srcs += files('hwaccess_physmap.c') |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 136 | if ['x86', 'x86_64'].contains(host_machine.cpu_family()) |
| 137 | srcs += files('hwaccess_x86_msr.c', 'hwaccess_x86_io.c') |
| Thomas Heijligen | 140c126 | 2021-09-27 15:12:26 +0200 | [diff] [blame] | 138 | endif |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 139 | endif |
| 140 | |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 141 | # Pseudo dependencies |
| 142 | linux_headers = \ |
| 143 | cc.has_header('linux/i2c.h') and \ |
| 144 | cc.has_header('linux/i2c-dev.h') and \ |
| 145 | cc.has_header('mtd/mtd-user.h') and \ |
| 146 | cc.has_header('linux/spi/spidev.h') ? declare_dependency() : dependency('', required : false) |
| Thomas Heijligen | b975da1 | 2022-08-13 12:10:05 +0200 | [diff] [blame] | 147 | |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 148 | # '<programmer_name>' : { |
| 149 | # 'system' : list[string], # default: ['all'] |
| 150 | # 'cpu_families : list[string], # default: ['all'] |
| 151 | # 'deps' : list[dep], # default: [] |
| 152 | # 'groups : list[boolean], # default: [] |
| 153 | # 'srcs' : list[file], # default: [] |
| 154 | # 'flags' : list[string], # default: [] |
| 155 | # 'default' : boolean, # default: true |
| 156 | # 'active' : boolean, # added on runtime |
| 157 | # } |
| 158 | programmer = { |
| 159 | 'atahpt' : { |
| 160 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 161 | 'cpu_families' : [ cpus_port_io ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 162 | 'deps' : [ libpci ], |
| 163 | 'groups' : [ group_pci, group_internal ], |
| 164 | 'srcs' : files('atahpt.c', 'pcidev.c'), |
| 165 | 'flags' : [ '-DCONFIG_ATAHPT=1' ], |
| 166 | 'default' : false, # not yet working |
| 167 | }, |
| 168 | 'atapromise' : { |
| 169 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 170 | 'cpu_families' : [ cpus_port_io, cpus_raw_mem ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 171 | 'deps' : [ libpci ], |
| 172 | 'groups' : [ group_pci, group_internal ], |
| 173 | 'srcs' : files('atapromise.c', 'pcidev.c'), |
| 174 | 'flags' : [ '-DCONFIG_ATAPROMISE=1' ], |
| 175 | 'default' : false, |
| 176 | }, |
| 177 | 'atavia' : { |
| 178 | 'systems' : systems_hwaccess, |
| 179 | 'deps' : [ libpci ], |
| 180 | 'groups' : [ group_pci, group_internal ], |
| 181 | 'srcs' : files('atavia.c', 'pcidev.c'), |
| 182 | 'flags' : [ '-DCONFIG_ATAVIA=1' ], |
| 183 | }, |
| 184 | 'buspirate_spi' : { |
| 185 | 'systems' : systems_serial, |
| 186 | 'groups' : [ group_serial, group_external ], |
| Peter Stuge | 272b073 | 2022-12-11 03:55:02 +0100 | [diff] [blame] | 187 | 'srcs' : files('buspirate_spi.c', 'serial.c', custom_baud_c), |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 188 | 'flags' : [ '-DCONFIG_BUSPIRATE_SPI=1' ], |
| 189 | }, |
| 190 | 'ch341a_spi' : { |
| 191 | 'deps' : [ libusb1 ], |
| 192 | 'groups' : [ group_usb, group_external ], |
| 193 | 'srcs' : files('ch341a_spi.c'), |
| 194 | 'flags' : [ '-DCONFIG_CH341A_SPI=1' ], |
| 195 | }, |
| Nicholas Chin | 197b7c7 | 2022-10-23 13:10:31 -0600 | [diff] [blame] | 196 | 'ch347_spi' : { |
| 197 | 'deps' : [ libusb1 ], |
| 198 | 'groups' : [ group_usb, group_external ], |
| 199 | 'srcs' : files('ch347_spi.c'), |
| 200 | 'flags' : [ '-DCONFIG_CH347_SPI=1' ], |
| 201 | }, |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 202 | 'dediprog' : { |
| 203 | 'deps' : [ libusb1 ], |
| 204 | 'groups' : [ group_usb, group_external ], |
| 205 | 'srcs' : files('dediprog.c', 'usbdev.c'), |
| 206 | 'flags' : [ '-DCONFIG_DEDIPROG=1' ], |
| 207 | }, |
| 208 | 'developerbox_spi' : { |
| 209 | 'deps' : [ libusb1 ], |
| 210 | 'groups' : [ group_usb, group_external ], |
| 211 | 'srcs' : files('developerbox_spi.c', 'usbdev.c'), |
| 212 | 'flags' : [ '-DCONFIG_DEVELOPERBOX_SPI=1' ], |
| 213 | }, |
| 214 | 'digilent_spi' : { |
| 215 | 'deps' : [ libusb1 ], |
| 216 | 'groups' : [ group_usb, group_external ], |
| 217 | 'srcs' : files('digilent_spi.c'), |
| 218 | 'flags' : [ '-DCONFIG_DIGILENT_SPI=1' ], |
| 219 | }, |
| 220 | 'dirtyjtag_spi' : { |
| 221 | 'deps' : [ libusb1 ], |
| 222 | 'groups' : [ group_usb, group_external ], |
| 223 | 'srcs' : files('dirtyjtag_spi.c'), |
| 224 | 'flags' : [ '-DCONFIG_DIRTYJTAG_SPI=1' ], |
| 225 | }, |
| 226 | 'drkaiser' : { |
| 227 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 228 | 'cpu_families' : [ cpus_raw_mem ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 229 | 'deps' : [ libpci ], |
| 230 | 'groups' : [ group_pci, group_internal ], |
| 231 | 'srcs' : files('drkaiser.c', 'pcidev.c'), |
| 232 | 'flags' : [ '-DCONFIG_DRKAISER=1' ], |
| 233 | }, |
| 234 | 'dummy' : { |
| 235 | 'srcs' : files('dummyflasher.c'), |
| 236 | 'flags' : [ '-DCONFIG_DUMMY=1' ], |
| 237 | }, |
| 238 | 'ft2232_spi' : { |
| 239 | 'deps' : [ libftdi1 ], |
| 240 | 'groups' : [ group_ftdi, group_external ], |
| 241 | 'srcs' : files('ft2232_spi.c' ), |
| 242 | 'flags' : [ '-DCONFIG_FT2232_SPI=1' ], |
| 243 | }, |
| Nico Huber | 522160f | 2024-08-11 11:03:05 +0200 | [diff] [blame] | 244 | 'ft4222_spi' : { |
| 245 | 'deps' : [ libusb1 ], |
| 246 | 'groups' : [ group_usb, group_ftdi, group_external ], |
| 247 | 'srcs' : files('ft4222_spi.c' ), |
| 248 | 'flags' : [ '-DCONFIG_FT4222_SPI=1' ], |
| 249 | }, |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 250 | 'gfxnvidia' : { |
| 251 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 252 | 'cpu_families' : [ cpus_raw_mem ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 253 | 'deps' : [ libpci ], |
| 254 | 'groups' : [ group_pci, group_internal ], |
| 255 | 'srcs' : files('gfxnvidia.c', 'pcidev.c'), |
| 256 | 'flags' : [ '-DCONFIG_GFXNVIDIA=1' ], |
| 257 | }, |
| 258 | 'internal' : { |
| 259 | 'systems' : systems_hwaccess + ['linux'], |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 260 | 'cpu_families' : (host_machine.system() == 'linux' ? [ cpus_raw_mem ] : [ ['x86', 'x86_64'] ]), |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 261 | 'deps' : [ libpci ], |
| 262 | 'groups' : [ group_internal ], |
| 263 | 'srcs' : (host_machine.cpu_family() in ['x86', 'x86_64'] ? files( |
| 264 | 'processor_enable.c', |
| 265 | 'chipset_enable.c', |
| 266 | 'board_enable.c', |
| 267 | 'cbtable.c', |
| 268 | 'internal.c', |
| 269 | 'it87spi.c', |
| 270 | 'sb600spi.c', |
| 271 | 'amd_imc.c', |
| Nico Huber | 735b186 | 2023-01-29 18:28:45 +0000 | [diff] [blame] | 272 | 'amd_spi100.c', |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 273 | 'wbsio_spi.c', |
| 274 | 'mcp6x_spi.c', |
| 275 | 'ichspi.c', |
| 276 | 'dmi.c', |
| 277 | 'pcidev.c', |
| 278 | 'known_boards.c', |
| 279 | ) : files( |
| 280 | 'board_enable.c', |
| 281 | 'cbtable.c', |
| 282 | 'chipset_enable.c', |
| 283 | 'internal.c', |
| 284 | 'processor_enable.c', |
| 285 | 'pcidev.c', |
| 286 | 'known_boards.c', |
| 287 | )), |
| 288 | 'flags' : [ |
| 289 | '-DCONFIG_INTERNAL=1', |
| 290 | '-DCONFIG_INTERNAL_DMI=' + (get_option('use_internal_dmi') ? '1' : '0'), |
| Nico Huber | 2f75379 | 2023-03-28 00:46:50 +0200 | [diff] [blame] | 291 | '-DLINUX_MTD_AS_INTERNAL=' + (host_machine.cpu_family() in ['x86', 'x86_64'] ? '0' : '1'), |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 292 | ] |
| 293 | }, |
| 294 | 'it8212' : { |
| 295 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 296 | 'cpu_families' : [ cpus_raw_mem ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 297 | 'deps' : [ libpci ], |
| 298 | 'groups' : [ group_pci, group_internal ], |
| 299 | 'srcs' : files('it8212.c', 'pcidev.c'), |
| 300 | 'flags' : [ '-DCONFIG_IT8212=1' ], |
| 301 | }, |
| 302 | 'jlink_spi' : { |
| 303 | 'deps' : [ libjaylink ], |
| 304 | 'groups' : [ group_jlink, group_external ], |
| 305 | 'srcs' : files('jlink_spi.c'), |
| 306 | 'flags' : [ '-DCONFIG_JLINK_SPI=1' ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 307 | }, |
| Steve Markgraf | 6189947 | 2023-01-09 23:06:52 +0100 | [diff] [blame] | 308 | 'linux_gpio_spi' : { |
| 309 | 'systems' : [ 'linux' ], |
| 310 | 'deps' : [ libgpiod ], |
| 311 | 'groups' : [ group_gpiod, group_external ], |
| Nico Huber | 8d2c0df | 2024-01-14 23:39:40 +0100 | [diff] [blame] | 312 | 'srcs' : libgpiod.version() < '2.0.0' |
| 313 | ? files('linux_gpio_spi.c') |
| 314 | : files('linux_gpio2_spi.c'), |
| Nico Huber | aa5268d | 2023-03-09 17:15:23 +0100 | [diff] [blame] | 315 | 'flags' : [ '-DCONFIG_LINUX_GPIO_SPI=1' ], |
| Steve Markgraf | 6189947 | 2023-01-09 23:06:52 +0100 | [diff] [blame] | 316 | }, |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 317 | 'linux_mtd' : { |
| 318 | 'systems' : [ 'linux' ], |
| 319 | 'deps' : [ linux_headers ], |
| 320 | 'groups' : [ group_internal ], |
| 321 | 'srcs' : files('linux_mtd.c'), |
| 322 | 'flags' : [ '-DCONFIG_LINUX_MTD=1' ], |
| 323 | }, |
| 324 | 'linux_spi' : { |
| 325 | 'systems' : [ 'linux' ], |
| 326 | 'deps' : [ linux_headers ], |
| 327 | # internal / external? |
| 328 | 'srcs' : files('linux_spi.c'), |
| 329 | 'flags' : [ '-DCONFIG_LINUX_SPI=1' ], |
| 330 | }, |
| 331 | 'mstarddc_spi' : { |
| 332 | 'systems' : [ 'linux' ], |
| 333 | 'deps' : [ linux_headers ], |
| 334 | 'groups' : [ group_i2c ], |
| 335 | 'srcs' : files('mstarddc_spi.c'), |
| 336 | 'flags' : [ '-DCONFIG_MSTARDDC_SPI=1' ], |
| 337 | 'default' : false |
| 338 | }, |
| 339 | 'nic3com' : { |
| 340 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 341 | 'cpu_families' : [ cpus_port_io ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 342 | 'deps' : [ libpci ], |
| 343 | 'groups' : [ group_pci, group_internal ], |
| 344 | 'srcs' : files('nic3com.c', 'pcidev.c'), |
| 345 | 'flags' : [ '-DCONFIG_NIC3COM=1' ], |
| 346 | }, |
| 347 | 'nicintel' : { |
| 348 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 349 | 'cpu_families' : [ cpus_raw_mem ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 350 | 'deps' : [ libpci ], |
| 351 | 'groups' : [ group_pci, group_internal ], |
| 352 | 'srcs' : files('nicintel.c', 'pcidev.c'), |
| 353 | 'flags' : [ '-DCONFIG_NICINTEL=1' ], |
| 354 | }, |
| 355 | 'nicintel_eeprom' : { |
| 356 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 357 | 'cpu_families' : [ cpus_raw_mem ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 358 | 'deps' : [ libpci ], |
| 359 | 'groups' : [ group_pci, group_internal ], |
| 360 | 'srcs' : files('nicintel_eeprom.c', 'pcidev.c'), |
| 361 | 'flags' : [ '-DCONFIG_NICINTEL_EEPROM=1' ], |
| 362 | }, |
| 363 | 'nicintel_spi' : { |
| 364 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 365 | 'cpu_families' : [ cpus_raw_mem ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 366 | 'deps' : [ libpci ], |
| 367 | 'groups' : [ group_pci, group_internal ], |
| 368 | 'srcs' : files('nicintel_spi.c', 'pcidev.c'), |
| 369 | 'flags' : [ '-DCONFIG_NICINTEL_SPI=1' ], |
| 370 | }, |
| 371 | 'nicnatsemi' : { |
| 372 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 373 | 'cpu_families' : [ cpus_port_io ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 374 | 'deps' : [ libpci ], |
| 375 | 'groups' : [ group_pci, group_internal ], |
| 376 | 'srcs' : files('nicnatsemi.c', 'pcidev.c'), |
| 377 | 'flags' : [ '-DCONFIG_NICNATSEMI=1' ], |
| 378 | 'default' : false, # not complete nor tested |
| 379 | }, |
| 380 | 'nicrealtek' : { |
| 381 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 382 | 'cpu_families' : [ cpus_port_io ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 383 | 'deps' : [ libpci ], |
| 384 | 'groups' : [ group_pci, group_internal ], |
| 385 | 'srcs' : files('nicrealtek.c', 'pcidev.c'), |
| 386 | 'flags' : [ '-DCONFIG_NICREALTEK=1' ], |
| 387 | }, |
| 388 | 'ogp_spi' : { |
| 389 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 390 | 'cpu_families' : [ cpus_raw_mem ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 391 | 'deps' : [ libpci ], |
| 392 | 'groups' : [ group_pci, group_internal ], |
| 393 | 'srcs' : files('ogp_spi.c', 'pcidev.c'), |
| 394 | 'flags' : [ '-DCONFIG_OGP_SPI=1' ], |
| 395 | }, |
| 396 | 'pickit2_spi' : { |
| 397 | 'deps' : [ libusb1 ], |
| 398 | 'groups' : [ group_usb, group_external ], |
| 399 | 'srcs' : files('pickit2_spi.c'), |
| 400 | 'flags' : [ '-DCONFIG_PICKIT2_SPI=1' ], |
| 401 | }, |
| 402 | 'pony_spi' : { |
| 403 | 'systems' : systems_serial, |
| 404 | 'groups' : [ group_serial, group_external ], |
| Peter Stuge | 272b073 | 2022-12-11 03:55:02 +0100 | [diff] [blame] | 405 | 'srcs' : files('pony_spi.c', 'serial.c', custom_baud_c), |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 406 | 'flags' : [ '-DCONFIG_PONY_SPI=1' ], |
| 407 | }, |
| 408 | 'rayer_spi' : { |
| 409 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 410 | 'cpu_families' : [ cpus_port_io ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 411 | 'groups' : [ group_internal ], |
| 412 | 'srcs' : files('rayer_spi.c'), |
| 413 | 'flags' : [ '-DCONFIG_RAYER_SPI=1' ], |
| 414 | }, |
| 415 | 'satamv' : { |
| 416 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 417 | 'cpu_families' : [ cpus_port_io, cpus_raw_mem ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 418 | 'deps' : [ libpci ], |
| 419 | 'groups' : [ group_pci, group_internal ], |
| 420 | 'srcs' : files('satamv.c', 'pcidev.c'), |
| 421 | 'flags' : ['-DCONFIG_SATAMV=1'], |
| 422 | }, |
| 423 | 'satasii' : { |
| 424 | 'systems' : systems_hwaccess, |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 425 | 'cpu_families' : [ cpus_raw_mem ], |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 426 | 'deps' : [ libpci ], |
| 427 | 'groups' : [ group_pci, group_internal ], |
| 428 | 'srcs' : files('satasii.c', 'pcidev.c'), |
| 429 | 'flags' : [ '-DCONFIG_SATASII=1' ], |
| 430 | }, |
| 431 | 'serprog' : { |
| 432 | 'systems' : systems_serial, |
| 433 | 'groups' : [ group_serial, group_external ], |
| Peter Stuge | 272b073 | 2022-12-11 03:55:02 +0100 | [diff] [blame] | 434 | 'srcs' : files('serprog.c', 'serial.c', custom_baud_c), |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 435 | 'flags' : [ '-DCONFIG_SERPROG=1' ], |
| 436 | }, |
| 437 | 'stlinkv3_spi' : { |
| 438 | 'deps' : [ libusb1 ], |
| 439 | 'groups' : [ group_usb, group_external ], |
| 440 | 'srcs' : files('stlinkv3_spi.c', 'usbdev.c'), |
| 441 | 'flags' : [ '-DCONFIG_STLINKV3_SPI=1' ], |
| 442 | }, |
| 443 | 'usbblaster_spi' : { |
| 444 | 'deps' : [ libftdi1 ], |
| 445 | 'groups' : [ group_ftdi, group_external ], |
| 446 | 'srcs' : files('usbblaster_spi.c'), |
| 447 | 'flags' : [ '-DCONFIG_USBBLASTER_SPI=1' ], |
| 448 | }, |
| 449 | } |
| 450 | |
| 451 | active_programmer_count = 0 |
| 452 | foreach p_name, p_data : programmer |
| 453 | p_data += { |
| 454 | 'systems' : p_data.get('systems', ['all']), |
| 455 | 'cpu_families' : p_data.get('cpu_families', ['all']), |
| 456 | 'deps' : p_data.get('deps', []), |
| 457 | 'groups' : p_data.get('groups', []), |
| 458 | 'srcs' : p_data.get('srcs', []), |
| 459 | 'flags' : p_data.get('flags', []), |
| 460 | 'default' : p_data.get('default', true), |
| 461 | } |
| 462 | |
| 463 | active = false |
| 464 | deps_found = true |
| 465 | not_found_dep = '' |
| 466 | not_active_message = '' |
| 467 | selected_hard = p_name in get_option('programmer') |
| 468 | selected_soft = p_data.get('groups').contains(true) or \ |
| 469 | 'all' in get_option('programmer') or \ |
| 470 | 'auto' in get_option('programmer') and p_data.get('default') |
| Nico Huber | 72c9e40 | 2024-04-21 13:07:17 +0200 | [diff] [blame] | 471 | |
| 472 | available = (p_data.get('systems') == ['all'] or p_data.get('systems').contains(host_machine.system())) |
| 473 | if p_data.get('cpu_families') != ['all'] |
| 474 | foreach families_list : p_data.get('cpu_families') |
| 475 | available = available and families_list.contains(host_machine.cpu_family()) |
| 476 | endforeach |
| 477 | endif |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 478 | |
| 479 | foreach dep : p_data.get('deps') |
| 480 | if not dep.found() |
| 481 | deps_found = false |
| 482 | not_found_dep = dep.name() |
| 483 | break |
| 484 | endif |
| 485 | endforeach |
| 486 | |
| 487 | if selected_hard |
| 488 | if not available |
| 489 | error(p_name + ' selected but not supported on this platform') |
| 490 | elif not deps_found |
| 491 | error(p_name + ' selected but dependency ' + not_found_dep +'not found') |
| 492 | else |
| 493 | active = true |
| 494 | endif |
| 495 | elif selected_soft |
| 496 | if not available |
| 497 | not_active_message = 'Not available on platform' |
| 498 | elif not deps_found |
| 499 | not_active_message = 'dependency ' + not_found_dep + ' not found' |
| 500 | else |
| 501 | active = true |
| 502 | endif |
| 503 | else |
| 504 | not_active_message = 'not selected' |
| 505 | endif |
| 506 | |
| 507 | p_data += { |
| 508 | 'active' : active, |
| 509 | 'summary' : not_active_message, |
| 510 | } |
| 511 | programmer += {p_name : p_data} |
| 512 | if active |
| 513 | active_programmer_count += 1 |
| 514 | endif |
| 515 | endforeach |
| 516 | |
| 517 | if active_programmer_count == 0 |
| 518 | error('At least one programmer must be selected') |
| 519 | endif |
| 520 | |
| 521 | # add srcs, cargs & deps from active programmer to global srcs, cargs & deps |
| 522 | foreach p_name, p_data : programmer |
| 523 | if p_data.get('active') |
| 524 | srcs += p_data.get('srcs') |
| 525 | cargs += p_data.get('flags') |
| 526 | deps += p_data.get('deps') |
| 527 | endif |
| 528 | endforeach |
| Thomas Heijligen | b975da1 | 2022-08-13 12:10:05 +0200 | [diff] [blame] | 529 | |
| 530 | if config_print_wiki.enabled() |
| 531 | if get_option('classic_cli').disabled() |
| 532 | error('`classic_cli_print_wiki` can not be enabled without `classic_cli`') |
| 533 | else |
| 534 | srcs += files('print_wiki.c') |
| 535 | cargs += '-DCONFIG_PRINT_WIKI=1' |
| 536 | endif |
| Thomas Heijligen | 2ae9bf2 | 2022-05-03 12:00:14 +0200 | [diff] [blame] | 537 | endif |
| 538 | |
| Nico Huber | e68b08b | 2023-02-11 00:00:54 +0100 | [diff] [blame] | 539 | cargs += '-DCONFIG_DEFAULT_PROGRAMMER_NAME="' + config_default_programmer_name + '"' |
| Thomas Heijligen | 2ae9bf2 | 2022-05-03 12:00:14 +0200 | [diff] [blame] | 540 | cargs += '-DCONFIG_DEFAULT_PROGRAMMER_ARGS="' + config_default_programmer_args + '"' |
| 541 | |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 542 | install_headers([ |
| Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 543 | 'include/libflashprog.h', |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 544 | ], |
| 545 | ) |
| 546 | |
| Thomas Heijligen | 58015c2 | 2022-04-14 13:50:55 +0200 | [diff] [blame] | 547 | include_dir = include_directories('include') |
| 548 | |
| Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 549 | mapfile = 'libflashprog.map' |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 550 | if host_machine.system() == 'darwin' |
| 551 | vflag = '' |
| 552 | else |
| 553 | vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile) |
| 554 | endif |
| Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 555 | libflashprog = both_libraries( |
| 556 | 'flashprog', |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 557 | sources : [ |
| 558 | srcs, |
| 559 | ], |
| Thomas Heijligen | 58015c2 | 2022-04-14 13:50:55 +0200 | [diff] [blame] | 560 | include_directories : include_dir, |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 561 | soversion : lt_current, |
| 562 | version : lt_version, |
| 563 | dependencies : [ |
| 564 | deps, |
| 565 | ], |
| 566 | c_args : [ |
| 567 | cargs, |
| 568 | ], |
| 569 | install : true, |
| 570 | link_args : vflag, |
| 571 | link_depends : mapfile, |
| 572 | ) |
| 573 | |
| Mario Limonciello | d954d5d | 2019-09-24 16:06:57 -0500 | [diff] [blame] | 574 | version = meson.project_version() |
| 575 | #strip leading characters |
| 576 | if version.startswith('v') |
| 577 | version = version.split('v')[1] |
| 578 | endif |
| 579 | if version.startswith('p') |
| 580 | version = version.split('p')[1] |
| 581 | endif |
| 582 | |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 583 | pkgg = import('pkgconfig') |
| 584 | pkgg.generate( |
| Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 585 | libraries : libflashprog, |
| Mario Limonciello | d954d5d | 2019-09-24 16:06:57 -0500 | [diff] [blame] | 586 | version : version, |
| Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 587 | name : 'flashprog', |
| 588 | filebase : 'flashprog', |
| 589 | description : 'library to interact with flashprog', |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 590 | ) |
| 591 | |
| Nico Huber | 9d09e0f | 2025-03-02 22:55:10 +0100 | [diff] [blame] | 592 | config_data = configuration_data() |
| 593 | config_data.set('VERSION', meson.project_version()) |
| 594 | config_data.set('MAN_DATE', run_command('util/getversion.sh', '--man-date', check : true).stdout().strip()) |
| 595 | |
| 596 | configure_file( |
| 597 | input : 'include/version.h.in', |
| 598 | output : 'version.h', |
| 599 | configuration : config_data, |
| 600 | ) |
| 601 | |
| Nico Huber | 8f7122c | 2023-02-11 18:28:33 +0100 | [diff] [blame] | 602 | foreach man : [ 'flashprog.8', 'flashprog-config.8', 'flashprog-write-protect.8' ] |
| Nico Huber | 1f693db | 2023-02-11 18:28:33 +0100 | [diff] [blame] | 603 | configure_file( |
| 604 | input : man + '.tmpl', |
| 605 | output : man, |
| Nico Huber | 9d09e0f | 2025-03-02 22:55:10 +0100 | [diff] [blame] | 606 | configuration : config_data, |
| Nico Huber | 1f693db | 2023-02-11 18:28:33 +0100 | [diff] [blame] | 607 | install: true, |
| 608 | install_dir: join_paths(get_option('mandir'), 'man8'), |
| 609 | ) |
| 610 | endforeach |
| Richard Hughes | dad3a16 | 2020-02-17 09:57:01 +0000 | [diff] [blame] | 611 | |
| Thomas Heijligen | a12e010 | 2022-08-13 12:42:05 +0200 | [diff] [blame] | 612 | if get_option('classic_cli').auto() or get_option('classic_cli').enabled() |
| 613 | executable( |
| Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 614 | 'flashprog', |
| Thomas Heijligen | a12e010 | 2022-08-13 12:42:05 +0200 | [diff] [blame] | 615 | files( |
| Nico Huber | a705043 | 2023-02-11 18:01:26 +0100 | [diff] [blame] | 616 | 'cli.c', |
| Nico Huber | 1f693db | 2023-02-11 18:28:33 +0100 | [diff] [blame] | 617 | 'cli_config.c', |
| Nico Huber | 8f7122c | 2023-02-11 18:28:33 +0100 | [diff] [blame] | 618 | 'cli_wp.c', |
| Thomas Heijligen | a12e010 | 2022-08-13 12:42:05 +0200 | [diff] [blame] | 619 | 'cli_classic.c', |
| 620 | 'cli_common.c', |
| 621 | 'cli_output.c', |
| 622 | ), |
| 623 | c_args : cargs, |
| 624 | include_directories : include_dir, |
| 625 | install : true, |
| Nico Huber | 63d30a2 | 2024-11-01 14:18:30 +0100 | [diff] [blame] | 626 | install_dir : get_option('bindir'), |
| Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 627 | link_with : libflashprog.get_static_lib(), # flashprog needs internal symbols of libflashprog |
| Thomas Heijligen | a12e010 | 2022-08-13 12:42:05 +0200 | [diff] [blame] | 628 | ) |
| 629 | endif |
| Richard Hughes | cb97368 | 2018-12-19 11:44:22 +0000 | [diff] [blame] | 630 | |
| Thomas Heijligen | b7341b1 | 2022-08-13 12:21:44 +0200 | [diff] [blame] | 631 | if get_option('ich_descriptors_tool').auto() or get_option('ich_descriptors_tool').enabled() |
| 632 | subdir('util/ich_descriptors_tool') |
| 633 | endif |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 634 | |
| 635 | programmer_names_active = [] |
| 636 | programmer_names_not_active = [] |
| 637 | foreach p_name, p_data : programmer |
| 638 | if p_data.get('active') |
| 639 | programmer_names_active += p_name |
| 640 | else |
| 641 | programmer_names_not_active += p_name + ' (' + p_data.get('summary', '') + ')' |
| 642 | endif |
| 643 | endforeach |
| 644 | |
| Jakob Haufe | fbba454 | 2024-10-23 20:45:08 +0200 | [diff] [blame] | 645 | subdir('util') |
| 646 | |
| Thomas Heijligen | 3ecf0b6 | 2022-08-18 12:16:29 +0200 | [diff] [blame] | 647 | summary({ |
| 648 | 'active' : [programmer_names_active], |
| 649 | 'non active' : [programmer_names_not_active], |
| 650 | }, section : 'Programmer') |