Skip to content

Commit ddf766d

Browse files
committed
Add top level makefile target to build cyclonedx
Signed-off-by: Richard Alpe <[email protected]>
1 parent 737b131 commit ddf766d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,16 @@ $(config):
3232
legal-info: | buildroot/Makefile
3333
$(call bmake,legal-info LINUX_LICENSE_FILES=COPYING)
3434

35+
cyclonedx: | buildroot/Makefile
36+
@echo "Generating package information..."
37+
@$(MAKE) --no-print-directory -C buildroot O=$(O) show-info | ./buildroot/utils/generate-cyclonedx > $(O)/cyclonedx-sbom.json
38+
@echo "CycloneDX SBOM generated: $(O)/cyclonedx-sbom.json"
39+
3540
# Workaround, see board/x86_64/board.mk
3641
test:
3742
@+$(call bmake,$@)
3843

3944
buildroot/Makefile:
4045
@git submodule update --init
4146

42-
.PHONY: all check coverity dep test
47+
.PHONY: all check coverity dep test cyclonedx

0 commit comments

Comments
 (0)