Skip to content

Commit

Permalink
target/meson: OOBE experience improvement when using the non-target-s…
Browse files Browse the repository at this point in the history
…pecific cross-file
  • Loading branch information
dragonmux committed Dec 20, 2023
1 parent e8e85a4 commit 6533915
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/target/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ if is_firmware_build
'ti': 'Texas Instruments parts',
'xilinx': 'Xilinx parts',
}

# Check to see if the set of enabled targets is all of them and the
# firmware is to be built for a STM32F1 based probe (requires a restriction)
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']
endif
endif

# Conditional file compilation based on target selection
Expand Down

0 comments on commit 6533915

Please sign in to comment.