Lines Matching +full:zephyr +full:- +full:based
3 # SPDX-License-Identifier: Apache-2.0
13 This command creates an SPDX 2.2 tag-value bill of materials
14 following the completion of a Zephyr build.
17 BUILDDIR/.cmake/api/v1/query/codemodel-v2 in order to enable
18 the CMake file-based API, which the SPDX command relies upon.
19 This can be done by calling `west spdx --init` prior to
35 # doc/guides/west/zephyr-cmds.rst up to date.
36 parser.add_argument('-i', '--init', action="store_true",
37 help="initialize CMake file-based API")
38 parser.add_argument('-d', '--build-dir',
40 parser.add_argument('-n', '--namespace-prefix',
42 parser.add_argument('-s', '--spdx-dir',
44 parser.add_argument('--analyze-includes', action="store_true",
46 parser.add_argument('--include-sdk', action="store_true",
52 self.dbg(f"running zephyr SPDX generator")
54 self.dbg(f" --init is", args.init)
55 self.dbg(f" --build-dir is", args.build_dir)
56 self.dbg(f" --namespace-prefix is", args.namespace_prefix)
57 self.dbg(f" --spdx-dir is", args.spdx_dir)
58 self.dbg(f" --analyze-includes is", args.analyze_includes)
59 self.dbg(f" --include-sdk is", args.include_sdk)
67 self.inf("initializing CMake file-based API prior to build")
70 self.die("Build directory not specified; call `west spdx --init --build-dir=BUILD_DIR`")
72 # initialize CMake file-based API - empty query file
77 self.err("Couldn't create CMake file-based API query directory")
78 … self.err("You can manually create an empty file at $BUILDDIR/.cmake/api/v1/query/codemodel-v2")
82 self.die("Build directory not specified; call `west spdx --build-dir=BUILD_DIR`")
93 cfg.namespacePrefix = f"http://spdx.org/spdxdocs/zephyr-{str(uuid.uuid4())}"