Skip to content

feat: add compile flag for board family#2977

Merged
fpistm merged 1 commit into
stm32duino:mainfrom
fpistm:board_type
May 25, 2026
Merged

feat: add compile flag for board family#2977
fpistm merged 1 commit into
stm32duino:mainfrom
fpistm:board_type

Conversation

@fpistm
Copy link
Copy Markdown
Member

@fpistm fpistm commented May 22, 2026

Ex:
-DARDUINO_NUCLEO_64

By Default for all Gerneric:
-DARDUINO_GENERIC
Fixes #2976.

Ex:
-DARDUINO_NUCLEO_64

By Default for all Gerneric:
-DARDUINO_GENERIC

Fixes stm32duino#2976.

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm fpistm added this to the 3.0.0 milestone May 22, 2026
@fpistm fpistm added the enhancement New feature or request label May 22, 2026
@pmunts
Copy link
Copy Markdown

pmunts commented May 23, 2026

Looks great to me. I actually started working on this myself this morning so I was surprised to get your notice about this. I was prepending to *.build.st_extra_flags; that didn't require changing platforms.txt.

@fpistm
Copy link
Copy Markdown
Member Author

fpistm commented May 23, 2026

Adding to st_extra_flags was an other solution but it is often override at board level. So it requires to add the define for all boards which override it. The way done in this PR requires only one define per high level menu and allows a default value for all generic menu.

@fpistm fpistm merged commit 27aac38 into stm32duino:main May 25, 2026
23 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in STM32 core based on ST HAL May 25, 2026
@fpistm fpistm deleted the board_type branch May 25, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

Request a compile flag for board family

2 participants