buildroot/support
Thomas Petazzoni c9a1a1eb91 support/scripts/pkg-stats: properly handle host packages with -c option
In commit 7a607dab33
("support/scripts/pkg-stats: support generating stats based on
configured packages"), we added a -c option to pkg-stats to generate a
report based on the list of packages enabled in the configuration,
rather than for all packages.

This is done based on the list of packages returned in JSON format by
"make show-info". However, we use the keys of the JSON dict returned
by "make show-info", which include the host- prefix of host
packages. Due to this, none of the host packages are currently
matching and therefore they are not reported in the pkg-stats -c
output.

This commit fixes that by using the recently introduced "name"
property in the "make show-info" JSON dict.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[yann.morin.1998@free.fr: use anonymous '_' for unused variable]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-01-31 23:01:21 +01:00
..
config-fragments support/config-fragments/autobuild/bootlin-x86-64-glibc: use toolchain-external-bootlin 2021-01-17 10:29:17 +01:00
dependencies support/dependencies: drop check for maximal tar version 2021-01-10 22:06:58 +01:00
docker support/docker: drop Python 2.x modules 2020-08-14 23:08:34 +02:00
download support/download: change format of archives generated from svn 2021-01-10 22:06:58 +01:00
gnuconfig support/gnuconfig: fix previous version bump 2020-09-27 18:30:05 +02:00
kconfig support/kconfig/merge_config.sh: avoid false positive matches from comment lines 2018-11-24 10:11:15 +01:00
legal-info core/legal-info: update list of saved material in README 2020-01-18 18:38:42 +01:00
libtool support/libtool: add patch for newer versions 2014-12-21 13:21:56 +01:00
misc Update for 2020.11.2 2021-01-31 22:44:08 +01:00
scripts support/scripts/pkg-stats: properly handle host packages with -c option 2021-01-31 23:01:21 +01:00
testing Replace LIBFOO_CPE_ID_NAME by LIBFOO_CPE_ID_PRODUCT 2021-01-21 22:43:24 +01:00