-
Notifications
You must be signed in to change notification settings - Fork 7.7k
modules: cmsis, cmsis_6: only add the intended cmsis module #93715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This should fail until #93707 is merged -- it does |
@wearyzen can we delete https://github.com/zephyrproject-rtos/cmsis/tree/master/CMSIS/Core entirely or there's a reason to keep it? Would still do this change as well but I'm happy to open a PR to drop that code if we don't need it anymore. |
I am not sure if this will be enough,
cmsis-dsp uses the old cmsis here :
set(cmsis_glue_path ${ZEPHYR_CMSIS_MODULE_DIR}) |
cmsis-nn here:
set(cmsis_glue_path ${ZEPHYR_CMSIS_MODULE_DIR}) |
So even if the ci doesn't catch this, this could result in another bug report
There are modules still using it so I don't think we should delete it. |
ok but it looks like both cmsis-dsp and cmsis-nn have that include line behind a CONFIG entry, so CI should still catch it for tests that do not enable those modules (i.e. most of them, I did run this change before merging the revert and it did indeed fail) |
Also, looks like it's not that unused after all, even putting those modules aside :-) |
Maybe we introduce a new config USE_CMSIS_5_MODULE which cmsis-nn and cmsis-dsp (or the other current reported modules) enables and is enabled by default for Cortex-A and R, and then the include goes under this config? |
Yeah I think this would be good to keep track of who is using the old cmsis as well. |
This seems to fix things locally for me and covers all the current CI failures
|
mmh that would enable |
Blocked on #93725 |
The following west manifest projects have changed revision in this Pull Request: ⛔ DNM label due to: 3 projects with PR revision Note: This message is automatically posted and updated by the Manifest GitHub Action. |
wow that was quick 😃 Looks like you covered everything that Zephyr's ci covers! |
Always use the cmsis_6 version for DWT_LSR_Present_Msk and DWT_LSR_Access_Msk, the old ones are not going to be available anymore when Cortex-M is selected.. Signed-off-by: Fabio Baltieri <[email protected]>
… fixes Update various hals to pickup the cmsis_6 related fixes. Signed-off-by: Fabio Baltieri <[email protected]>
The current code base is meant to use cmsis for Cortex A and R and cmsis_6 for Cortex M, but the build system is configured to include the path for both when Cortex M is selected. This leaves us exposed to PR using the old headers, that would not get caught in CI but would fail the build on a project using Cortex M that only has the cmsis_6 module. Change the cmsis module setting to only include the module files in the intended case. Signed-off-by: Fabio Baltieri <[email protected]>
Yeah well, that's what this specific run covers, there must be more in the hals but I really don't have an effective way of chasing that down so I'm afraid this is the best we can do. |
|
FYI zephyrproject-rtos/hal_ambiq#56 is merged. |
The current code base is meant to use cmsis for Cortex A and R and cmsis_6 for Cortex M, but the build system is configured to include the path for both when Cortex M is selected. This leaves us exposed to PR using the old headers, that would not get caught in CI but would fail the build on a project using Cortex M that only has the cmsis_6 module.
Change the cmsis module setting to only include the module files in the intended case.
Deps