Skip to content

Commit

Permalink
target/meson: Gate some of the targets for the F072 probe platform to…
Browse files Browse the repository at this point in the history
… solve the build being too large
  • Loading branch information
dragonmux authored and esden committed Jan 12, 2024
1 parent 56f744e commit cccceea
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cross-file/f072.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ endian = 'little'

[project options]
probe = 'f072'
targets = 'cortexar,cortexm,riscv32,riscv64,efm,hc32,lpc,nrf,nxp,renesas,rp,sam,stm,ti,xilinx'
targets = 'cortexm,riscv32,riscv64,efm,hc32,lpc,nrf,nxp,renesas,rp,sam,stm,ti'
rtt_support = false
bmd_bootloader = false
17 changes: 17 additions & 0 deletions src/target/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,23 @@ if is_firmware_build
if probe in ['bluepill', 'native', 'stlink', 'swlink'] and enabled_targets.length() == target_names.keys().length()
warning('Disabling some targets as your build will not fit the target probe otherwise')
enabled_targets = ['cortexm', 'efm', 'hc32', 'lpc', 'nrf', 'nxp', 'renesas', 'rp', 'sam', 'stm', 'ti']
elif probe in ['f072'] and enabled_targets.length() == target_names.keys().length()
warning('Disabling some targets as your build will not fit the target probe otherwise')
enabled_targets = [
'cortexm',
'riscv32',
'riscv64',
'efm',
'hc32',
'lpc',
'nrf',
'nxp',
'renesas',
'rp',
'sam',
'stm',
'ti'
]
endif
endif

Expand Down

0 comments on commit cccceea

Please sign in to comment.