| 
									
										
										
										
											2019-01-28 10:45:02 -07:00
										 |  |  | # Keep the help strings in sync with the values in the .py files!
 | 
					
						
							| 
									
										
										
										
											2019-01-23 08:31:06 -07:00
										 |  |  | west-commands:
 | 
					
						
							| 
									
										
										
										
											2019-05-08 18:05:38 +02:00
										 |  |  |   - file: scripts/west_commands/completion.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: completion
 | 
					
						
							|  |  |  |         class: Completion
 | 
					
						
							| 
									
										
										
										
											2022-08-31 14:31:35 +02:00
										 |  |  |         help: output shell completion scripts
 | 
					
						
							| 
									
										
										
										
											2019-04-23 22:34:40 +02:00
										 |  |  |   - file: scripts/west_commands/boards.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: boards
 | 
					
						
							|  |  |  |         class: Boards
 | 
					
						
							|  |  |  |         help: display information about supported boards
 | 
					
						
							| 
									
										
										
										
											2024-05-14 10:32:52 +02:00
										 |  |  |   - file: scripts/west_commands/shields.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: shields
 | 
					
						
							|  |  |  |         class: Shields
 | 
					
						
							|  |  |  |         help: display list of supported shields
 | 
					
						
							| 
									
										
										
										
											2019-01-23 08:31:06 -07:00
										 |  |  |   - file: scripts/west_commands/build.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: build
 | 
					
						
							|  |  |  |         class: Build
 | 
					
						
							| 
									
										
										
										
											2019-01-28 10:45:02 -07:00
										 |  |  |         help: compile a Zephyr application
 | 
					
						
							| 
									
										
										
										
											2022-09-22 08:46:44 -06:00
										 |  |  |   - file: scripts/west_commands/twister_cmd.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: twister
 | 
					
						
							|  |  |  |         class: Twister
 | 
					
						
							|  |  |  |         help: west twister wrapper
 | 
					
						
							| 
									
										
										
										
											2019-01-30 20:30:42 -07:00
										 |  |  |   - file: scripts/west_commands/sign.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: sign
 | 
					
						
							|  |  |  |         class: Sign
 | 
					
						
							|  |  |  |         help: sign a Zephyr binary for bootloader chain-loading
 | 
					
						
							| 
									
										
										
										
											2019-01-23 08:31:06 -07:00
										 |  |  |   - file: scripts/west_commands/flash.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: flash
 | 
					
						
							|  |  |  |         class: Flash
 | 
					
						
							| 
									
										
										
										
											2019-01-28 10:45:02 -07:00
										 |  |  |         help: flash and run a binary on a board
 | 
					
						
							| 
									
										
										
										
											2019-01-23 08:31:06 -07:00
										 |  |  |   - file: scripts/west_commands/debug.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: debug
 | 
					
						
							|  |  |  |         class: Debug
 | 
					
						
							| 
									
										
										
										
											2019-01-28 10:45:02 -07:00
										 |  |  |         help: flash and interactively debug a Zephyr application
 | 
					
						
							| 
									
										
										
										
											2019-01-23 08:31:06 -07:00
										 |  |  |       - name: debugserver
 | 
					
						
							|  |  |  |         class: DebugServer
 | 
					
						
							| 
									
										
										
										
											2019-01-28 10:45:02 -07:00
										 |  |  |         help: connect to board and launch a debug server
 | 
					
						
							| 
									
										
										
										
											2019-01-23 08:31:06 -07:00
										 |  |  |       - name: attach
 | 
					
						
							|  |  |  |         class: Attach
 | 
					
						
							| 
									
										
										
										
											2019-01-28 10:45:02 -07:00
										 |  |  |         help: interactively debug a board
 | 
					
						
							| 
									
										
										
										
											2024-07-05 12:42:12 +02:00
										 |  |  |       - name: rtt
 | 
					
						
							|  |  |  |         class: Rtt
 | 
					
						
							|  |  |  |         help: open an rtt shell
 | 
					
						
							| 
									
										
										
										
											2020-03-05 13:42:42 +01:00
										 |  |  |   - file: scripts/west_commands/export.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: zephyr-export
 | 
					
						
							|  |  |  |         class: ZephyrExport
 | 
					
						
							|  |  |  |         help: export Zephyr installation as a CMake config package
 | 
					
						
							| 
									
										
											  
											
												west: spdx: Generate SPDX 2.2 tag-value documents
This adds support to generate SPDX 2.2 tag-value documents via the
new west spdx command. The CMake file-based APIs are leveraged to
create relationships from source files to the corresponding
generated build files. SPDX-License-Identifier comments in source
files are scanned and filled into the SPDX documents.
Before `west build` is run, a specific file must be created in the
build directory so that the CMake API reply will run. This can be
done by running:
    west spdx --init -d BUILD_DIR
After `west build` is run, SPDX generation is then activated by
calling `west spdx`; currently this requires passing the build
directory as a parameter again:
    west spdx -d BUILD_DIR
This will generate three SPDX documents in `BUILD_DIR/spdx/`:
1) `app.spdx`: This contains the bill-of-materials for the
application source files used for the build.
2) `zephyr.spdx`: This contains the bill-of-materials for the
specific Zephyr source code files that are used for the build.
3) `build.spdx`: This contains the bill-of-materials for the built
output files.
Each file in the bill-of-materials is scanned, so that its hashes
(SHA256 and SHA1) can be recorded, along with any detected licenses
if an `SPDX-License-Identifier` appears in the file.
SPDX Relationships are created to indicate dependencies between
CMake build targets; build targets that are linked together; and
source files that are compiled to generate the built library files.
`west spdx` can be called with optional parameters for further
configuration:
* `-n PREFIX`: specifies a prefix for the Document Namespaces that
will be included in the generated SPDX documents. See SPDX spec 2.2
section 2.5 at
https://spdx.github.io/spdx-spec/2-document-creation-information/.
If -n is omitted, a default namespace will be generated according
to the default format described in section 2.5 using a random UUID.
* `-s SPDX_DIR`: specifies an alternate directory where the SPDX
documents should be written. If not specified, they will be saved
in `BUILD_DIR/spdx/`.
* `--analyze-includes`: in addition to recording the compiled
source code files (e.g. `.c`, `.S`) in the bills-of-materials, if
this flag is specified, `west spdx` will attempt to determine the
specific header files that are included for each `.c` file. This
will take longer, as it performs a dry run using the C compiler
for each `.c` file (using the same arguments that were passed to it
for the actual build).
* `--include-sdk`: if `--analyze-includes` is used, then adding
`--include-sdk` will create a fourth SPDX document, `sdk.spdx`,
which will list any header files included from the SDK.
Signed-off-by: Steve Winslow <steve@swinslow.net>
											
										 
											2021-04-20 23:04:52 -04:00
										 |  |  |   - file: scripts/west_commands/spdx.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: spdx
 | 
					
						
							|  |  |  |         class: ZephyrSpdx
 | 
					
						
							|  |  |  |         help: create SPDX bill of materials
 | 
					
						
							| 
									
										
										
										
											2022-08-04 19:08:22 +02:00
										 |  |  |   - file: scripts/west_commands/blobs.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: blobs
 | 
					
						
							|  |  |  |         class: Blobs
 | 
					
						
							|  |  |  |         help: work with binary blobs
 | 
					
						
							| 
									
										
										
										
											2023-03-24 14:37:24 +03:00
										 |  |  |   - file: scripts/west_commands/bindesc.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: bindesc
 | 
					
						
							|  |  |  |         class: Bindesc
 | 
					
						
							|  |  |  |         help: work with Binary Descriptors
 | 
					
						
							| 
									
										
										
										
											2024-03-07 10:35:06 +01:00
										 |  |  |   - file: scripts/west_commands/robot.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: robot
 | 
					
						
							|  |  |  |         class: Robot
 | 
					
						
							|  |  |  |         help: run RobotFramework test suites
 | 
					
						
							| 
									
										
										
										
											2024-03-07 10:30:09 +01:00
										 |  |  |   - file: scripts/west_commands/simulate.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: simulate
 | 
					
						
							|  |  |  |         class: Simulate
 | 
					
						
							|  |  |  |         help: simulate board
 | 
					
						
							| 
									
										
										
										
											2024-07-24 06:26:02 +09:00
										 |  |  |   - file: scripts/west_commands/sdk.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: sdk
 | 
					
						
							|  |  |  |         class: Sdk
 | 
					
						
							|  |  |  |         help: manage Zephyr SDK
 | 
					
						
							| 
									
										
										
										
											2024-11-02 16:46:56 +01:00
										 |  |  |   - file: scripts/west_commands/packages.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: packages
 | 
					
						
							|  |  |  |         class: Packages
 | 
					
						
							|  |  |  |         help: manage packages for Zephyr
 | 
					
						
							| 
									
										
										
										
											2024-12-19 15:53:41 -05:00
										 |  |  |   - file: scripts/west_commands/patch.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: patch
 | 
					
						
							|  |  |  |         class: Patch
 | 
					
						
							|  |  |  |         help: manage patches for Zephyr modules
 | 
					
						
							| 
									
										
										
										
											2025-02-19 00:05:18 -08:00
										 |  |  |   - file: scripts/west_commands/gtags.py
 | 
					
						
							|  |  |  |     commands:
 | 
					
						
							|  |  |  |       - name: gtags
 | 
					
						
							|  |  |  |         class: Gtags
 | 
					
						
							|  |  |  |         help: create a GNU global tags file for the current workspace
 |