Skip to content
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

espressif: refactor after removing IDF submodule #1738

Merged
merged 4 commits into from
Jul 24, 2023

Conversation

almir-okato
Copy link
Collaborator

This PR removes the IDF from gitmodules.
The main reasons for the removal are avoiding to have unnecessary clones from IDF and avoiding system environment conflicts.

Instead of using IDF downloaded as submodule, the Espressif port uses a parameter passed on building as reference for HAL code:

  • ESP_HAL_PATH - path where are the components used by Espressif port HAL.

An existing IDF installation also can be used, so if the parameters are not present when building, the build system will search for IDF_PATH from the environment variables.

Currently, the HAL code expected considers the IDF release/v5.1 branch code basis. As the supported RTOSes get updated with the MCUboot Espressif port expected changes, a check for HAL versions should be add.

@almir-okato almir-okato linked an issue Jul 6, 2023 that may be closed by this pull request
@almir-okato almir-okato changed the title draft: espressif: refactor after removing IDF submodule espressif: refactor after removing IDF submodule Jul 7, 2023
@almir-okato almir-okato added the area: espressif Affects the Espressif port label Jul 7, 2023
Signed-off-by: Almir Okato <almir.okato@espressif.com>
Remove the ESP-IDF from git submodules to avoid potential
duplicated repo clones on the user system. IDF HAL code is still
a dependency for Espressif port, therefore now the HAL code
reference needs to be passed by parameter when building.

The Espressif port was also updated to work with last v5.1 IDF
code.

Signed-off-by: Almir Okato <almir.okato@espressif.com>
Update the script for cloning and installing Espressif IDF needed
for building MCUboot Espressif's port on CI.

Signed-off-by: Almir Okato <almir.okato@espressif.com>
Signed-off-by: Almir Okato <almir.okato@espressif.com>
@almir-okato
Copy link
Collaborator Author

@sylvioalves @utzig PTAL

Copy link
Member

@utzig utzig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sylvioalves
Copy link
Contributor

LGTM

@almir-okato almir-okato merged commit 879348b into mcu-tools:main Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: espressif Affects the Espressif port
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ESP-IDF 5.0 Support
3 participants