Skip to content

Commit 41d8774

Browse files
committed
scripts: west: spdx: extract copyright info
use REUSE to extract copyright text from source files and include in SBOM documents Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 262b30f commit 41d8774

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/develop/west/zephyr-cmds.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ Each file in the bill-of-materials is scanned, so that its hashes (SHA256 and
136136
SHA1) can be recorded, along with any detected licenses if an
137137
``SPDX-License-Identifier`` comment appears in the file.
138138

139+
Copyright notices are extracted using the third-party :command:`reuse` tool from the REUSE group.
140+
When found, these notices are added to SPDX documents as ``FileCopyrightText`` fields.
141+
142+
.. note::
143+
Copyright extraction uses heuristics that may not capture complete notice text, so
144+
``FileCopyrightText`` content is best-effort. This aligns with SPDX specification recommendations.
145+
139146
SPDX Relationships are created to indicate dependencies between
140147
CMake build targets, build targets that are linked together, and
141148
source files that are compiled to generate the built library files.

0 commit comments

Comments
 (0)