cpu/efm32: don't add CMSIS/DSP include path explicitly - #22180
Merged
Conversation
benpicco
approved these changes
Apr 8, 2026
crasbe
force-pushed
the
pr/efm32_arm_math
branch
from
April 8, 2026 13:07
2b75ca9 to
725779e
Compare
crasbe
enabled auto-merge
April 8, 2026 13:07
Contributor
Author
|
Thank you :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
Pull request #18056 changed the behavior the CMSIS packages are included. For the Cortex-M0+ based EFM32 CPUs the
cmsis-dsppackage is always included since thearm_math.hheader file is required.While the package was included conditionally, the include path was added unconditionally. This led to compilation errors in #22091 when generating the
Makefile.ci, as thestk3200board was built first and then thestk3600board afterwards.The include path existed when adding it to the
INCLUDESvariable since the build folder still contained the DSP folder from thestk3200, but it did not exist anymore during compilation becausepkg/pkg.mkdeletes it in the sparse checkout procedure.This led then to a
cc1: error: /data/riotbuild/riotbase/build/pkg/cmsis/CMSIS/DSP/Include: No such file or directory [-Werror=missing-include-dirs]error for thestk3600board, even though the path was not actually needed by that board.It is not actually necessary to add the include path in the
cpu/efm32/Makefile.includeas it is already included bypkg/cmsis/Makefile.include.Testing procedure
This is not so easy to test I guess? You could checkout PR #22091 and run
BUILD_IN_DOCKER=1 BOARD=stk3200 make -C examples/networking/dtn/bplib_cla_udp/first and thenBUILD_IN_DOCKER=1 BOARD=stk3600 make -C examples/networking/dtn/bplib_cla_udp/afterwards.With current
master:With this PR:
Issues/PRs references
Fix regression introduced in #18056, reverts 2467ff0.
Declaration of AI-Tools / LLMs usage:
AI-Tools / LLMs that were used are: