stm32cube: get rid of the HAL Legacy definitions header#321
Draft
mathieuchopstm wants to merge 1 commit into
Draft
stm32cube: get rid of the HAL Legacy definitions header#321mathieuchopstm wants to merge 1 commit into
mathieuchopstm wants to merge 1 commit into
Conversation
a21a0d7 to
f0466c7
Compare
f0466c7 to
f4b6cc1
Compare
f4b6cc1 to
5a56062
Compare
f1a8fa4 to
76ff683
Compare
7c62737 to
bc8d1b4
Compare
Remove the HAL Legacy definitions header from most series using a dummy replacement (shared by all series!) to ensure proper compilation despite the missing file, and update the README of affected series to remove entry documenting patches to the HAL Legacy definitions header. While it at, get rid of all other legacy headers (can_legacy / eth_legacy) which Zephyr never uses. This is purely cosmectic as these headers are only used if the corresponding HAL module is enabled but Zephyr has never enabled (and will never enable!) the CAN_LEGACY or ETH_LEGACY modules. The STM32F7 and STM32U5 series are not modified and will continue to use their current (patched) HAL Legacy definitions header: some drivers have not been updated(!) and require legacy definitions to build... Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
bc8d1b4 to
0e80bf1
Compare
etienne-lms
approved these changes
May 12, 2026
djiatsaf-st
approved these changes
May 12, 2026
erwango
approved these changes
May 12, 2026
Member
erwango
left a comment
There was a problem hiding this comment.
Approved. Taking into account that this should be taken into account in upcoming HAL update script refactoring (before next HAL update).
Collaborator
Author
|
Moving to draft/DNM: Zephyr CI revealed there are still drivers we need that are "buggy". I'll resume work on this after properly assessing how many HAL drivers are dependent on Legacy definitions, rather than based only on smoke tests as I've done so far... |
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.
Remove the HAL Legacy definitions header from all series using a little trick to ensure proper compilation despite the missing file, and update the README of all series to remove mention of patches to the header we are getting rid of.
Also remove the other legacy headers (can_legacy / eth_legacy) which are never used from the Zephyr side. This is however more of a cosmectic patch as these headers are not part of the build (they are only included if the corresponding HAL module is enabled, which is not the case in Zephyr).