mirror of
https://github.com/blackmagic-debug/blackmagic.git
synced 2025-10-14 02:58:36 +08:00
157 lines
2.9 KiB
Meson
157 lines
2.9 KiB
Meson
option(
|
|
'probe',
|
|
type: 'combo',
|
|
choices: [
|
|
'',
|
|
'96b_carbon',
|
|
'blackpill-f401cc',
|
|
'blackpill-f401ce',
|
|
'blackpill-f411ce',
|
|
'bluepill',
|
|
'ctxlink',
|
|
'f072',
|
|
'f3',
|
|
'f4discovery',
|
|
'hydrabus',
|
|
'launchpad-icdi',
|
|
'native',
|
|
'stlink',
|
|
'stlinkv3',
|
|
'swlink'
|
|
],
|
|
value: '',
|
|
description: 'Hardware platform where the BMD firmware will run'
|
|
)
|
|
option(
|
|
'targets',
|
|
type: 'array',
|
|
choices: [
|
|
'cortexar',
|
|
'cortexm',
|
|
'riscv32',
|
|
'riscv64',
|
|
'apollo3',
|
|
'at32f4',
|
|
'ch32',
|
|
'ch32v',
|
|
'ch579',
|
|
'efm',
|
|
'gd32',
|
|
'hc32',
|
|
'lpc',
|
|
'mm32',
|
|
'nrf',
|
|
'nxp',
|
|
'puya',
|
|
'renesas',
|
|
'rp',
|
|
'sam',
|
|
'stm',
|
|
'ti',
|
|
'xilinx'
|
|
],
|
|
description: 'Enabled debug targets'
|
|
)
|
|
option(
|
|
'print_memory_usage',
|
|
type: 'boolean',
|
|
value: true,
|
|
description: 'Print firmware static memory usage at the end of the build'
|
|
)
|
|
option(
|
|
'debug_output',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Enable debug output (for debugging the BMD stack, not debug targets)'
|
|
)
|
|
option(
|
|
'rtt_support',
|
|
type: 'boolean',
|
|
value: true,
|
|
description: 'Enable RTT (Real Time Transfer) support'
|
|
)
|
|
option(
|
|
'rtt_ident',
|
|
type: 'string',
|
|
description: 'RTT (Real Time Transfer) identifier string'
|
|
)
|
|
option(
|
|
'no_own_ll',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Use generic interface routines (for when low level routines are not available)'
|
|
)
|
|
option(
|
|
'bmd_bootloader',
|
|
type: 'boolean',
|
|
value: true,
|
|
description: 'Use the BMD bootloader (not always applicable)'
|
|
)
|
|
option(
|
|
'stlink_v2_isol',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Build for the ISOL variant of ST-Link v2'
|
|
)
|
|
option(
|
|
'stlink_swim_nrst_as_uart',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Repurpose the SWIM pins as the UART (only applicable to stlink)'
|
|
)
|
|
option(
|
|
'serialno',
|
|
type: 'string',
|
|
value: '1',
|
|
description: 'Serial number to report (only applicable to some probes)'
|
|
)
|
|
option(
|
|
'advertise_noackmode',
|
|
type: 'boolean',
|
|
value: true,
|
|
description: 'Let GDB know that the probe supports and prefers `QStartNoAckMode`'
|
|
)
|
|
option(
|
|
'alternative_pinout',
|
|
type: 'combo',
|
|
choices: ['0', '1', '2', '3'],
|
|
value: '0',
|
|
description: 'Alternative pinout for probe (only applicable to blackpill-f4*)'
|
|
)
|
|
option(
|
|
'shield',
|
|
type: 'combo',
|
|
choices: ['0', '1'],
|
|
value: '0',
|
|
description: 'Select that blackpill-f4* is used with a shield (only applicable to blackpill-f4*)'
|
|
)
|
|
option(
|
|
'trace_protocol',
|
|
type: 'combo',
|
|
choices: ['1','2', '3'],
|
|
value: '3',
|
|
description: 'Select the Trace SWO protocol, 1 == Manchester, 2 == UART, 3 == platform'
|
|
)
|
|
option(
|
|
'on_carrier_board',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Maps some LEDs to use those on carrier board (only applicable to blackpill-f4*)'
|
|
)
|
|
option(
|
|
'enable_gpiod',
|
|
type: 'feature',
|
|
value: 'auto'
|
|
)
|
|
option(
|
|
'enable_riscv_accel',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Enable firmware-side protocol acceleration of RISC-V Debug'
|
|
)
|
|
option(
|
|
'rvswd_support',
|
|
type: 'boolean',
|
|
value: false
|
|
)
|