Lines Matching +full:zephyr +full:- +full:sdk +full:-
3 # SPDX-License-Identifier: Apache-2.0
23 class Sdk(WestCommand): class
26 "sdk",
27 "manage Zephyr SDK",
28 "List and Install Zephyr SDK",
41 Run 'west sdk' or 'west sdk list' to list installed SDKs.
42 See 'west sdk list --help' for details.
45 Installing SDK:
47 Run 'west sdk install' to install Zephyr SDK.
48 See 'west sdk install --help' for details.
61 help="list installed Zephyr SDKs",
67 … Run 'west sdk' or 'west sdk list' command information about available SDKs is displayed.
74 help="install Zephyr SDK",
78 Installing SDK:
80 Run 'west sdk install' to install Zephyr SDK.
82 Set --version option to install a specific version of the SDK.
86 You can specify the installation directory with --install-dir or --install-base.
87 If the specified version of the SDK is already installed,
88 the already installed SDK will be used regardless of the settings of
89 --install-dir and --install-base.
91 Typically, Zephyr SDK archives contain only one directory named zephyr-sdk-<version>
93 … The SDK archive is extracted to the home directory if both --install-dir and --install-base
95 In this case, SDK will install into ${HOME}/zephyr-sdk-<version>.
96 … If --install-base is specified, the archive will be extracted under the specified path.
97 In this case, SDK will install into <BASE>/zephyr-sdk-<version> .
98 … If --install-dir is specified, the directory contained in the archive will be renamed
101 --interactive, --toolchains, --no-toolchains and --no-hosttools options
104 --personal-access-token specifies the GitHub personal access token.
107 --api-url specifies the REST API endpoint for GitHub releases information
108 when installing the SDK from a different GitHub repository.
114 "--version",
118 help="version of the Zephyr SDK to install. "
123 "-b",
124 "--install-base",
127 help="Base directory to SDK install. "
128 …"The subdirectory created by extracting the archive in <BASE> will be the SDK installation directo…
129 "For example, -b /foo/bar will install the SDK in `/foo/bar/zephyr-sdk-<version>'."
132 "-d",
133 "--install-dir",
136 help="SDK install destination directory. "
137 "The SDK will be installed on the specified path. "
139 …"For example, if you specify -b /foo/bar/baz, The archive's zephyr-sdk-<version> directory will be…
140 "If this option is specified, the --install-base option is ignored. "
143 "-i",
144 "--interactive",
147 … "--toolchains, --no-toolchains and --no-hosttools will be ignored if this option is enabled.",
150 "-t",
151 "--toolchains",
154 help="toolchain(s) to install (e.g. 'arm-zephyr-eabi'). "
158 "-T",
159 "--no-toolchains",
162 "--toolchains will be ignored if this option is enabled.",
165 "-H",
166 "--no-hosttools",
168 help="do not install host-tools.",
171 "--personal-access-token", help="GitHub personal access token."
174 "--api-url",
175 default="https://api.github.com/repos/zephyrproject-rtos/sdk-ng/releases",
176 help="GitHub releases API endpoint used to look for Zephyr SDKs.",
269 return f"zephyr-sdk-{version}_{osname}-{arch}_minimal{ext}"
298 sha256 = self.minimal_sdk_sha256(resp.content.decode("UTF-8"), target_release)
313 total_length = int(resp.headers["Content-Length"])
334 # We expect that only the zephyr-sdk-x.y.z directory will be present in the archive.
360 optsep = "-"
362 # Associate installed SDK so that it can be found.
398 self.inf("Fetching Zephyr SDK list...")
418 f"Unavailable SDK version: {version}."
429 prefix = f"toolchain_{osname}-{arch}_"
463 f"Zephyr SDK version {version} is already installed at {str(sdk_dir)}. Using it."
472 "-P",
473 str(Path(__file__).parent / "sdk" / "listsdk.cmake"),
478 # remove '-- Zephyr-sdk,' leader
479 sdk_lines = [l[15:] for l in output if l.startswith("-- Zephyr-sdk,")]
520 # Identify toolchain directory by the existence of <toolchain>/bin/<toolchain>-gcc
522 gcc_postfix = "-gcc.exe"
524 gcc_postfix = "-gcc"
544 self.die("No Zephyr SDK installed.")
552 self.inf(" installed-toolchains:")
554 self.inf(f" - {tc}")
562 self.inf(" available-toolchains:")
565 self.inf(f" - {tc}")