Makefile: add 'show-info-all'
PATCH v3 1/2 Makefile: add 'show-info-all'
The maintainance and testing workflow sometimes requires to output a list of every existing packages on Buildroot:
- Generating an SBOM of the whole Buildroot tree for security.buildroot.org
- List every sources for every packages for source.buildroot.org
The previous solution relied on make allyesconfig but always ran into conflicts that needed manual resolution. Also some packages would not be present because they are archicture dependant.
To avoid having to manually modify the 'show-info' command this commit adds the 'show-info-all' command. It accesses the PACKAGES_ALL variable with all the packages present on Buildroot independently of the archicture or any config entries.
It forces the BR2_HAVE_DOT_CONFIG variable to be set to force the reading of the packages mk files.
---
v1 --> v2: removed TARGETS_ROOTFS and recursive dependencies. It
introduced "host-" package with no name that introduced an empty entry when generating an sbom when make show-info-all is ran without defconfig.
Checked the diff between the previous version and the new one and except the empty entry nothing is changed by just iterating over PACKAGES_ALL.
v2 --> v3:
- add documentation to make help and manual
- fix the error message from check-host-cmake.sh when cmake3 is present in the path
--- Makefile | 24 ++++++++++++++++++++++-- docs/manual/common-usage.adoc | 12 ++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-)
Makefile +22 -2
@@ -126,7 +126,7 @@ noconfig_targets := menuconfig nconfig gconfig xconfig config oldconfig randconf defconfig %_defconfig allyesconfig allnoconfig alldefconfig syncconfig release \ randpackageconfig allyespackageconfig allnopackageconfig \ print-version olddefconfig distclean manual manual-% check-package \ - check-package-external + check-package-external show-info-all # Some global targets do not trigger a build, but are used to collect # metadata, or do various checks. When such targets are triggered,
@@ -142,7 +142,7 @@ nobuild_targets := source %-source \ clean distclean help show-targets graph-depends \ %-graph-depends %-show-depends %-show-version \ graph-build graph-size list-defconfigs \ - savedefconfig update-defconfig printvars show-vars + savedefconfig update-defconfig printvars show-vars show-info-all ifeq ($(MAKECMDGOALS),) BR_BUILDING = y else ifneq ($(filter-out $(nobuild_targets),$(MAKECMDGOALS)),)
@@ -236,6 +236,13 @@ BR2_CONFIG = $(CONFIG_DIR)/.config ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) -include $(BR2_CONFIG) endif +# show-info-all needs to access the PACKAGES_ALL variable. This variable +# contains a reference to every package present in Buildroot. +# Since the 'show-info-all' command might be used without actually having a +# dotconfig this condition is forced to be set true. +ifeq ($(MAKECMDGOALS),show-info-all) +BR2_HAVE_DOT_CONFIG = y +endif ifeq ($(BR2_PER_PACKAGE_DIRECTORIES),) # Disable top-level parallel build if per-package directories is not
@@ -948,6 +955,17 @@ show-info: ) \ ) +.PHONY: show-info-all +show-info-all: + @: + $(info $(call clean-json, \ + { $(foreach p, \ + $(sort $(PACKAGES_ALL)), \ + $(call json-info,$(call UPPERCASE,$(p)))$(comma) \ + ) } \ + ) \ + ) + .PHONY: pkg-stats pkg-stats: @cd "$(CONFIG_DIR)" ; \
@@ -1213,6 +1231,8 @@ help: @echo ' external-deps - list external packages used' @echo ' legal-info - generate info about license compliance' @echo ' show-info - generate info about packages, as a JSON blurb' + @echo ' show-info-all - generate info about all packages in Buildroot,' + @echo ' regardless of configuration or target architecture' @echo ' pkg-stats - generate info about packages as JSON and HTML' @echo ' printvars - dump internal variables selected with VARS=...' @echo ' show-vars - dump all internal variables as a JSON blurb; use VARS=...'
docs/manual/common-usage.adoc +12 -0
@@ -170,6 +170,18 @@ by using the +show-info+ make target: make show-info ---- +Buildroot can also produce information in the +show-info+ format about all +packages regardless of the configuration or architecture by using ++show-info-all+. +This is used for maintenance tasks that require information about every +package in the tree, such as generating a full-tree SBOM for +https://security.buildroot.org[]. +It does not require a +.config+ file: + +---- +make show-info-all +---- + Buildroot can also produce details about packages as HTML and JSON output using the +pkg-stats+ make target. Amongst other things, these details include whether known CVEs (security vulnerabilities) affect
Signature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 2/2 support/dependencies/check-host-cmake.sh: verify version argument
When running 'make show-info-all' without a '.config', it is possible to trigger this script without passing a version number.
The 'show-info-all' target is special because it forces the reading of all packages without requiring a .config, so BR2_HOST_CMAKE_AT_LEAST is unset and the script is called as:
check-host-cmake.sh cmake cmake3
Without validation, the integer comparisons below would produce errors like:
check-host-cmake.sh: line 37: [: cmake: integer expected
It's possible to trigger this by adding the following file somewhere in you path:
cat >/bin/cmake3 <<EOF
echo "cmake version 4.3.3 CMake suite maintained and supported by Kitware (kitware.com/cmake)." EOF
make show-info-all
--- support/dependencies/check-host-cmake.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+)
support/dependencies/check-host-cmake.sh +12 -0
@@ -6,6 +6,18 @@ major_min="${1%.*}" minor_min="${1#*.}" +# When running 'make show-info-all', it is possible to trigger this script +# without passing a version number. The 'show-info-all' target is special +# because it forces the reading of all packages without requiring a .config, +# so BR2_HOST_CMAKE_AT_LEAST is unset and the script is called as: +# check-host-cmake.sh cmake cmake3 +# Without validation, the integer comparisons below would produce errors like: +# check-host-cmake.sh: line 37: [: cmake: integer expected +# The following lines checks we have a single digit number from $1 before +# continuing the script. +[ "${major_min}" -eq "${major_min}" ] 2>/dev/null || exit 1 +[ "${minor_min}" -eq "${minor_min}" ] 2>/dev/null || exit 1 + shift for candidate; do
Signature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v3 2/2] support/dependencies/check-host-cmake.sh: verify version argument
Quoted 12 lines · Thomas Perale via buildroot
When running 'make show-info-all' without a '.config', it is possible to trigger this script without passing a version number.
The 'show-info-all' target is special because it forces the reading of all packages without requiring a .config, so
BR2_HOST_CMAKE_AT_LEASTis unset and the script is called as:
check-host-cmake.shcmake cmake3Without validation, the integer comparisons below would produce errors like:
check-host-cmake.sh: line 37: [: cmake: integer expected
Quoted 7 lines
It's possible to trigger this by adding the following file somewhere in you path:
cat >/bin/cmake3 <<EOF
echo "cmake version 4.3.3 CMake suite maintained and supported by Kitware (kitware.com/cmake)." EOF
make show-info-all
The same issue also occurs with pkg-stats though there it's not fatal (it just
logs on stderr). So I updated the commit message and the comment and applied to master, thanks.
Regards,
Arnout
Quoted 19 lines
Signed-off-by Thomas Perale <[email protected]>--- support/dependencies/check-host-cmake.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+)support/dependencies/check-host-cmake.sh +5
-0@@ -6,6 +6,18 @@ major_min="${1%.*}" minor_min="${1#*.}" +# When running 'make show-info-all', it is possible to trigger this script +# without passing a version number. The 'show-info-all' target is special +# because it forces the reading of all packages without requiring a .config, +# so BR2_HOST_CMAKE_AT_LEAST is unset and the script is called as: +# check-host-cmake.sh cmake cmake3
support/dependencies/check-host-cmake.sh line 23
Quoted 10 lines
support/dependencies/check-host-cmake.sh +7
-0+# Without validation, the integer comparisons below would produce errors like: +# check-host-cmake.sh: line 37: [: cmake: integer expected +# The following lines checks we have a single digit number from $1 before +# continuing the script. +[ "${major_min}" -eq "${major_min}" ] 2>/dev/null || exit 1 +[ "${minor_min}" -eq "${minor_min}" ] 2>/dev/null || exit 1 + shift for candidate; do
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH v3 2/2] support/dependencies/check-host-cmake.sh: verify version argument
In reply to Thomas Perale via buildrootIn reply of:
Quoted 15 lines
When running 'make show-info-all' without a '.config', it is possible to trigger this script without passing a version number.
The 'show-info-all' target is special because it forces the reading of all packages without requiring a .config, so
BR2_HOST_CMAKE_AT_LEASTis unset and the script is called as:
check-host-cmake.shcmake cmake3Without validation, the integer comparisons below would produce errors like:
check-host-cmake.sh: line 37: [: cmake: integer expectedIt's possible to trigger this by adding the following file somewhere in you path:
Quoted 6 lines
cat >/bin/cmake3 <<EOF
echo "cmake version 4.3.3 CMake suite maintained and supported by Kitware (kitware.com/cmake)." EOF
make show-info-allSigned-off-by Thomas Perale <[email protected]>
Applied to 2025.02.x & 2026.02.x. Thanks
Quoted 34 lines
--- support/dependencies/check-host-cmake.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+)support/dependencies/check-host-cmake.sh +12
-0@@ -6,6 +6,18 @@ major_min="${1%.*}" minor_min="${1#*.}" +# When running 'make show-info-all', it is possible to trigger this script +# without passing a version number. The 'show-info-all' target is special +# because it forces the reading of all packages without requiring a .config, +# so BR2_HOST_CMAKE_AT_LEAST is unset and the script is called as: +# check-host-cmake.sh cmake cmake3 +# Without validation, the integer comparisons below would produce errors like: +# check-host-cmake.sh: line 37: [: cmake: integer expected +# The following lines checks we have a single digit number from $1 before +# continuing the script. +[ "${major_min}" -eq "${major_min}" ] 2>/dev/null || exit 1 +[ "${minor_min}" -eq "${minor_min}" ] 2>/dev/null || exit 1 + shift for candidate; doSignature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 16 lines · Thomas Perale via buildroot
The maintainance and testing workflow sometimes requires to output a list of every existing packages on Buildroot:
- Generating an SBOM of the whole Buildroot tree for security.buildroot.org
- List every sources for every packages for source.buildroot.orgThe previous solution relied on
make allyesconfigbut always ran into conflicts that needed manual resolution. Also some packages would not be present because they are archicture dependant.To avoid having to manually modify the 'show-info' command this commit adds the 'show-info-all' command. It accesses the
PACKAGES_ALLvariable with all the packages present on Buildroot independently of the archicture or any config entries.
Quoted 4 lines
It forces the
BR2_HAVE_DOT_CONFIGvariable to be set to force the reading of the packages mk files.Signed-off-by Thomas Perale <[email protected]>
Applied to master, thanks, with one change and some updates to the commit message.
Quoted 59 lines
---
v1 --> v2: removed
TARGETS_ROOTFSand recursive dependencies. It
introduced "host-" package with no name that introduced an empty entry when generating an sbom whenmake show-info-allis ran without defconfig.
Checked the diff between the previous version and the new one and except the empty entry nothing is changed by just iterating overPACKAGES_ALL.v2 --> v3:
- add documentation to make help and manual
- fix the error message fromcheck-host-cmake.shwhen cmake3 is present in the path--- Makefile | 24 ++++++++++++++++++++++-- docs/manual/common-usage.adoc | 12 ++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-)Makefile +9
-2@@ -126,7 +126,7 @@ noconfig_targets := menuconfig nconfig gconfig xconfig config oldconfig randconf defconfig %_defconfig allyesconfig allnoconfig alldefconfig syncconfig release \ randpackageconfig allyespackageconfig allnopackageconfig \ print-version olddefconfig distclean manual manual-% check-package \ - check-package-external + check-package-external show-info-all # Some global targets do not trigger a build, but are used to collect # metadata, or do various checks. When such targets are triggered,@@ -142,7 +142,7 @@ nobuild_targets := source %-source \ clean distclean help show-targets graph-depends \ %-graph-depends %-show-depends %-show-version \ graph-build graph-size list-defconfigs \ - savedefconfig update-defconfig printvars show-vars + savedefconfig update-defconfig printvars show-vars show-info-all ifeq ($(MAKECMDGOALS),) BR_BUILDING = y else ifneq ($(filter-out $(nobuild_targets),$(MAKECMDGOALS)),)@@ -236,6 +236,13 @@ BR2_CONFIG = $(CONFIG_DIR)/.config ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) -include $(BR2_CONFIG) endif +# show-info-all needs to access the PACKAGES_ALL variable. This variable +# contains a reference to every package present in Buildroot. +# Since the 'show-info-all' command might be used without actually having a +# dotconfig this condition is forced to be set true. +ifeq ($(MAKECMDGOALS),show-info-all) +BR2_HAVE_DOT_CONFIG = y +endif ifeq ($(BR2_PER_PACKAGE_DIRECTORIES),) # Disable top-level parallel build if per-package directories is not@@ -948,6 +955,17 @@ show-info: ) \ )
Makefile show-info: · line 967
Quoted 10 lines
Makefile +10
-0+.PHONY: show-info-all +show-info-all: + @: + $(info $(call clean-json, \ + { $(foreach p, \ + $(sort $(PACKAGES_ALL)), \ + $(call json-info,$(call UPPERCASE,$(p)))$(comma) \ + ) } \ + ) \ + )
This is the same structure as show-info, so I refactored the two with an
additional show-info-inner goal.
Regards,
Arnout
Quoted 26 lines
Makefile +3
-0+ .PHONY: pkg-stats pkg-stats: @cd "$(CONFIG_DIR)" ; \@@ -1213,6 +1231,8 @@ help: @echo ' external-deps - list external packages used' @echo ' legal-info - generate info about license compliance' @echo ' show-info - generate info about packages, as a JSON blurb' + @echo ' show-info-all - generate info about all packages in Buildroot,' + @echo ' regardless of configuration or target architecture' @echo ' pkg-stats - generate info about packages as JSON and HTML' @echo ' printvars - dump internal variables selected with VARS=...' @echo ' show-vars - dump all internal variables as a JSON blurb; use VARS=...'docs/manual/common-usage.adoc +5
-0@@ -170,6 +170,18 @@ by using the +show-info+ make target: make show-info ---- +Buildroot can also produce information in the +show-info+ format about all +packages regardless of the configuration or architecture by using ++show-info-all+. +This is used for maintenance tasks that require information about every +package in the tree, such as generating a full-tree SBOM for
docs/manual/common-usage.adoc by using the +show-info+ make target: · line 187
Quoted 10 lines
docs/manual/common-usage.adoc +7
-0+https://security.buildroot.org[]. +It does not require a +.config+ file: + +---- +make show-info-all +---- + Buildroot can also produce details about packages as HTML and JSON output using the +pkg-stats+ make target. Amongst other things, these details include whether known CVEs (security vulnerabilities) affect
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 19 lines · Arnout Vandecappelle
Quoted 16 lines · Thomas Perale via buildroot
The maintainance and testing workflow sometimes requires to output a list of every existing packages on Buildroot:
- Generating an SBOM of the whole Buildroot tree for security.buildroot.org
- List every sources for every packages for source.buildroot.orgThe previous solution relied on
make allyesconfigbut always ran into conflicts that needed manual resolution. Also some packages would not be present because they are archicture dependant.To avoid having to manually modify the 'show-info' command this commit adds the 'show-info-all' command. It accesses the
PACKAGES_ALLvariable with all the packages present on Buildroot independently of the archicture or any config entries.
Quoted 7 lines
Quoted 4 lines
It forces the
BR2_HAVE_DOT_CONFIGvariable to be set to force the reading of the packages mk files.Signed-off-by Thomas Perale <[email protected]>Applied to master, thanks, with one change and some updates to the commit
message.
I forgot to add: it would be useful to add a test for this. Preferably as a
completely separate gitlab-ci job (that always runs, like the other checks) that simply calls show-info-all and stores the result as an artifact. Perhaps checking that it's valid JSON too. It should then be a (simple) script in utils/ or support/scripts so the check can easily be done manually as well.
Regards,
Arnout
Quoted 104 lines
Quoted 58 lines
---
v1 --> v2: removed
TARGETS_ROOTFSand recursive dependencies. It introduced "host-" package with no name that introduced an empty entry when generating an sbom whenmake show-info-allis ran without defconfig.
Checked the diff between the previous version and the new one and except the empty entry nothing is changed by just iterating overPACKAGES_ALL.v2 --> v3:
- add documentation to make help and manual
- fix the error message fromcheck-host-cmake.shwhen cmake3 is present in the path
---
Makefile | 24 ++++++++++++++++++++++-- docs/manual/common-usage.adoc | 12 ++++++++++++2 files changed, 34 insertions(+), 2 deletions(-)Makefile +0
-0@@ -126,7 +126,7 @@ noconfig_targets := menuconfig nconfig gconfig xconfigconfig oldconfig randconf
defconfig %_defconfig allyesconfig allnoconfig alldefconfig syncconfig release \
randpackageconfig allyespackageconfig allnopackageconfig \
print-version olddefconfig distclean manual manual-% check-package \
- check-package-external
+ check-package-external show-info-all
# Some global targets do not trigger a build, but are used to collect # metadata, or do various checks. When such targets are triggered,Makefile +1
-1@@ -142,7 +142,7 @@ nobuild_targets := source %-source \ clean distclean help show-targets graph-depends \ %-graph-depends %-show-depends %-show-version \ graph-build graph-size list-defconfigs \ - savedefconfig update-defconfig printvars show-vars + savedefconfig update-defconfig printvars show-vars show-info-all ifeq ($(MAKECMDGOALS),)
BR_BUILDING= y
else ifneq ($(filter-out $(nobuild_targets),$(MAKECMDGOALS)),)Makefile +0
-0@@ -236,6 +236,13 @@ BR2_CONFIG = $(CONFIG_DIR)/.config ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) -include $(BR2_CONFIG)endif
Makefile +7
-0+# show-info-all needs to access the PACKAGES_ALL variable. This variable +# contains a reference to every package present in Buildroot. +# Since the 'show-info-all' command might be used without actually having a +# dotconfig this condition is forced to be set true. +ifeq ($(MAKECMDGOALS),show-info-all) +BR2_HAVE_DOT_CONFIG = y +endififeq ($(BR2_PER_PACKAGE_DIRECTORIES),)
# Disable top-level parallel build if per-package directories is notMakefile +0
-0@@ -948,6 +955,17 @@ show-info: ) \ )Makefile show-info: · line 966
Quoted 10 lines
Makefile +10
-0+.PHONY: show-info-all +show-info-all: + @: + $(info $(call clean-json, \ + { $(foreach p, \ + $(sort $(PACKAGES_ALL)), \ + $(call json-info,$(call UPPERCASE,$(p)))$(comma) \ + ) } \ + ) \ + )This is the same structure as show-info, so I refactored the two with an
additional show-info-inner goal.Regards,
ArnoutQuoted 29 lines
Makefile +1
-0+.PHONY: pkg-stats
pkg-stats:
@cd "$(CONFIG_DIR)" ; \Makefile +0
-0@@ -1213,6 +1231,8 @@ help:@echo ' external-deps - list external packages used'
@echo ' legal-info - generate info about license compliance' @echo ' show-info - generate info about packages, as a JSON blurb' + @echo ' show-info-all - generate info about all packages in Buildroot,'
+ @echo ' regardless of configuration or target architecture'
@echo ' pkg-stats - generate info about packages as JSON and HTML' @echo ' printvars - dump internal variables selected with VARS=...' @echo ' show-vars - dump all internal variables as a JSON blurb; use VARS=...'docs/manual/common-usage.adoc +0
-0@@ -170,6 +170,18 @@ by using the +show-info+ make target:make show-info
----docs/manual/common-usage.adoc +7
-0+Buildroot can also produce information in the +show-info+ format about all +packages regardless of the configuration or architecture by using ++show-info-all+. +This is used for maintenance tasks that require information about every +package in the tree, such as generating a full-tree SBOM for +https://security.buildroot.org[]. +It does not require a +.config+ file:
Quoted 9 lines
Quoted 8 lines
docs/manual/common-usage.adoc +5
-0+ +---- +make show-info-all +---- +Buildroot can also produce details about packages as HTML and JSON output using the +pkg-stats+ make target. Amongst other things, these details include whether known CVEs (security vulnerabilities) affect
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedIn reply of:
Quoted 16 lines
The maintainance and testing workflow sometimes requires to output a list of every existing packages on Buildroot:
- Generating an SBOM of the whole Buildroot tree for security.buildroot.org
- List every sources for every packages for source.buildroot.orgThe previous solution relied on
make allyesconfigbut always ran into conflicts that needed manual resolution. Also some packages would not be present because they are archicture dependant.To avoid having to manually modify the 'show-info' command this commit adds the 'show-info-all' command. It accesses the
PACKAGES_ALLvariable with all the packages present on Buildroot independently of the archicture or any config entries.
Quoted 4 lines
It forces the
BR2_HAVE_DOT_CONFIGvariable to be set to force the reading of the packages mk files.Signed-off-by Thomas Perale <[email protected]>
Applied to 2025.02.x & 2026.02.x. Thanks
Quoted 112 lines
---
v1 --> v2: removed
TARGETS_ROOTFSand recursive dependencies. It
introduced "host-" package with no name that introduced an empty entry when generating an sbom whenmake show-info-allis ran without defconfig.
Checked the diff between the previous version and the new one and except the empty entry nothing is changed by just iterating overPACKAGES_ALL.v2 --> v3:
- add documentation to make help and manual
- fix the error message fromcheck-host-cmake.shwhen cmake3 is present in the path--- Makefile | 24 ++++++++++++++++++++++-- docs/manual/common-usage.adoc | 12 ++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-)Makefile +22
-2@@ -126,7 +126,7 @@ noconfig_targets := menuconfig nconfig gconfig xconfig config oldconfig randconf defconfig %_defconfig allyesconfig allnoconfig alldefconfig syncconfig release \ randpackageconfig allyespackageconfig allnopackageconfig \ print-version olddefconfig distclean manual manual-% check-package \ - check-package-external + check-package-external show-info-all # Some global targets do not trigger a build, but are used to collect # metadata, or do various checks. When such targets are triggered,@@ -142,7 +142,7 @@ nobuild_targets := source %-source \ clean distclean help show-targets graph-depends \ %-graph-depends %-show-depends %-show-version \ graph-build graph-size list-defconfigs \ - savedefconfig update-defconfig printvars show-vars + savedefconfig update-defconfig printvars show-vars show-info-all ifeq ($(MAKECMDGOALS),) BR_BUILDING = y else ifneq ($(filter-out $(nobuild_targets),$(MAKECMDGOALS)),)@@ -236,6 +236,13 @@ BR2_CONFIG = $(CONFIG_DIR)/.config ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) -include $(BR2_CONFIG) endif +# show-info-all needs to access the PACKAGES_ALL variable. This variable +# contains a reference to every package present in Buildroot. +# Since the 'show-info-all' command might be used without actually having a +# dotconfig this condition is forced to be set true. +ifeq ($(MAKECMDGOALS),show-info-all) +BR2_HAVE_DOT_CONFIG = y +endif ifeq ($(BR2_PER_PACKAGE_DIRECTORIES),) # Disable top-level parallel build if per-package directories is not@@ -948,6 +955,17 @@ show-info: ) \ ) +.PHONY: show-info-all +show-info-all: + @: + $(info $(call clean-json, \ + { $(foreach p, \ + $(sort $(PACKAGES_ALL)), \ + $(call json-info,$(call UPPERCASE,$(p)))$(comma) \ + ) } \ + ) \ + ) + .PHONY: pkg-stats pkg-stats: @cd "$(CONFIG_DIR)" ; \@@ -1213,6 +1231,8 @@ help: @echo ' external-deps - list external packages used' @echo ' legal-info - generate info about license compliance' @echo ' show-info - generate info about packages, as a JSON blurb' + @echo ' show-info-all - generate info about all packages in Buildroot,' + @echo ' regardless of configuration or target architecture' @echo ' pkg-stats - generate info about packages as JSON and HTML' @echo ' printvars - dump internal variables selected with VARS=...' @echo ' show-vars - dump all internal variables as a JSON blurb; use VARS=...'docs/manual/common-usage.adoc +12
-0@@ -170,6 +170,18 @@ by using the +show-info+ make target: make show-info ---- +Buildroot can also produce information in the +show-info+ format about all +packages regardless of the configuration or architecture by using ++show-info-all+. +This is used for maintenance tasks that require information about every +package in the tree, such as generating a full-tree SBOM for +https://security.buildroot.org[]. +It does not require a +.config+ file: + +---- +make show-info-all +---- + Buildroot can also produce details about packages as HTML and JSON output using the +pkg-stats+ make target. Amongst other things, these details include whether known CVEs (security vulnerabilities) affectSignature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot