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

commands: add the 'sdk' command to manage SDK. #722

Closed
wants to merge 1 commit into from

Conversation

soburi
Copy link
Member

@soburi soburi commented Jul 21, 2024

'west sdk' command can list and install SDK.

Run 'west sdk --install=latest' to simply install the latest SDK or
'west sdk' show installed SDKs informations.

This command is just a wrapper for SDK's setup command.
But this command makes the SDK install process simple.
It will be a good improvement for onboarding first-time users.

--

By introducing this command, you no longer need to check the SDK installation procedure to install the SDK,
so I think this will improve the experience for first-time users.

It depends on the SDK-NG installer and GitHub API,
but I think these are stable enough that I don't think it will be a big problem.

@soburi soburi marked this pull request as draft July 21, 2024 23:58
@soburi soburi force-pushed the add-sdk-command branch 2 times, most recently from 4eea207 to e735752 Compare July 22, 2024 00:16
This command can list and install SDK.

Run 'west sdk --install=latest' to simply install the latest SDK or
'west sdk' show installed SDKs informations.

This command is just a wrapper for SDK's setup command.
But this command makes the SDK install process simple.
It will be a good improvement for onboarding first-time users.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
@soburi soburi force-pushed the add-sdk-command branch from e735752 to 0e199fd Compare July 22, 2024 01:37
@soburi soburi marked this pull request as ready for review July 22, 2024 02:01
@pdgendt
Copy link
Collaborator

pdgendt commented Jul 22, 2024

I think this belongs in the zephyr project instead of west.

Copy link
Collaborator

@marc-hb marc-hb left a comment

Choose a reason for hiding this comment

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

This definitely belongs to zephyr/scripts/west_commands. West is trying to become less and less Zephyr-specific and the Zephyr SDK is obviously Zephyr-specific.

# Search for Zephyr SDK version 0.0.0 which does not exist, this is needed to
# return a list of compatible versions and find the best suited version that
# is available.
find_package(Zephyr-sdk 0.0.0 EXACT QUIET CONFIG PATHS ${zephyr_sdk_search_paths})
Copy link
Collaborator

Choose a reason for hiding this comment

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

@soburi soburi closed this Jul 24, 2024
@soburi
Copy link
Member Author

soburi commented Jul 25, 2024

@pdgendt @marc-hb

Thank you for your opinions

I've recreated this for the Zephyr repository.
zephyrproject-rtos/zephyr#76283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants