kumquat-buildroot/support/scripts
Heiko Thiery 28973f28ac support/scripts/pkg-stats: tweak infras field when running with -c
When we use the statistics output to generate a CVE/CPE customer
report showing whether a product is affected by CVEs, we are primarily
interested in whether they are relevant to the target
system. Currently we cannot see if the package is configured for the
build (infra==host) and/or the target system (infra==target).

Therefore this commit extends the pkg-stats script to leverage the
information available in "make show-info" output to tweak the list of
package infrastructures for each package. Thanks to this commit, the
script now has a more consistent behavior:

 * When pkg-stats is run without -c, i.e without a defined Buildroot
   configuration, it continues to operate as it did, i.e it lists all
   package infrastructures supported by the package (such as autotools
   host+target, or kconfig target, etc.)

 * When pkg-stats is run with -c, i.e with a defined Buildroot
   configuration which defines the list of packages that should be
   considered, then for each package it now lists only the package
   infrastructures used by the package in that current
   configuration. For example if you have a package with a host and
   target variant, but only the host variant is used in your
   configuration, now the pkg-stats output will only say that the host
   variant of this package is used;

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
[Thomas: pretty much rework the entire implementation and how the
result is presented.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-07-25 19:08:52 +02:00
..
apply-patches.sh
boot-qemu-image.py
br2-external support/scripts/br2-external: add kernel extensions 2022-06-22 22:22:30 +02:00
brpkgutil.py
check-bin-arch
check-dotconfig.py
check-host-rpath support/scripts: handle paths with regex characters in per-package 2022-06-04 09:55:34 +02:00
check-kernel-headers.sh
check-merged-usr.sh
cpedb.py
cve.py
eclipse-register-toolchain
expunge-gconv-modules
fix-configure-powerpc64.sh
fix-rpath
gen-bootlin-toolchains support/scripts/gen-bootlin-toolchains: add support for ARMv7 big endian toolchain 2022-06-14 17:28:30 +02:00
gen-missing-cpe
generate-gitlab-ci-yml utils/checkpackagelib: run unit tests on GitLab CI 2022-02-06 15:35:19 +01:00
genimage.sh
graph-build-time support/scripts/graph-build-time: add support for timeline graphing 2022-03-20 23:52:24 +01:00
graph-depends
hardlink-or-copy
mkmakefile
mkusers
pkg-stats support/scripts/pkg-stats: tweak infras field when running with -c 2022-07-25 19:08:52 +02:00
pyinstaller.py package/python-flit-core: new package/infrastructure 2022-02-16 22:16:43 +01:00
setlocalversion
size-stats