-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Fix install of IDF components #3034
Conversation
- Migrate component guids. - Fix extract path. - Fix URL of component manager download API.
WalkthroughThe pull request introduces modifications to the Changes
Possibly related PRs
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
CMake/binutils.ESP32.cmake (1)
Line range hint
574-586
: Consider adding hash verification for downloaded components.While the implementation correctly handles the download and extraction of components, consider adding hash verification for the downloaded archives to ensure integrity and prevent potential security issues.
Example approach:
if(NOT EXISTS ${destinationPath}) file(DOWNLOAD ${downloadUrl} ${archiveName}) + + # Verify archive hash + file(SHA256 ${archiveName} DOWNLOADED_HASH) + if(NOT DOWNLOADED_HASH STREQUAL EXPECTED_HASH) + message(FATAL_ERROR "Hash mismatch for ${component_name} archive") + endif() + message(STATUS "Component archive '" ${component_name} "' downloaded")
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
CMake/binutils.ESP32.cmake
(2 hunks)
🔇 Additional comments (3)
CMake/binutils.ESP32.cmake (3)
569-572
: LGTM! Clear separation of download and extraction paths.
The path handling has been improved by clearly separating the download destination from the extraction path. This makes the code more maintainable and follows CMake best practices.
580-580
: LGTM! Fixed extraction path.
The extraction path now correctly points to the IDF components directory, which aligns with the PR objective of fixing the extraction path.
597-598
: LGTM! Updated component GUIDs.
The component GUIDs have been updated to the correct values from the Espressif ESP Component Registry:
- tinyusb: 55142eec-a3a4-47a5-ad01-4ba3ef44444b
- esp_tinyusb: 8115ffc9-366a-4340-94ab-e327aed20831
- littlefs: 4831aa41-8b72-48ac-a534-910a985a5519
Also applies to: 601-601
Description
Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist
Summary by CodeRabbit