summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-06 21:45:41 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-06 21:45:41 +0200
commitdf3bf7bccd4b1caab137cec0f9ce17e7e2a39202 (patch)
tree9868871ac20e76fe282079b3275aad1e20a08ee6
parent2f762fb620f440a72af128b3455df3897d06fba1 (diff)
downloadbuildroot-df3bf7bccd4b1caab137cec0f9ce17e7e2a39202.tar.gz
buildroot-df3bf7bccd4b1caab137cec0f9ce17e7e2a39202.zip
pkg-stats: take into account waf packages
The waf package infrastructure was not known by the pkg-stats script, so let's add it. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rwxr-xr-xsupport/scripts/pkg-stats12
1 files changed, 12 insertions, 0 deletions
diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 95a8afc45e..eb4871142f 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -84,6 +84,7 @@ python_packages=0
rebar_packages=0
virtual_packages=0
generic_packages=0
+waf_packages=0
manual_packages=0
packages_with_licence=0
packages_without_licence=0
@@ -231,6 +232,11 @@ for i in $(find boot/ linux/ package/ toolchain/ -name '*.mk' | sort) ; do
hastarget=1
fi
+ if grep -E "\(waf-package\)" $i > /dev/null ; then
+ infratype="waf"
+ hastarget=1
+ fi
+
pkg=$(basename $i)
dir=$(dirname $i)
pkg=${pkg%.mk}
@@ -259,6 +265,8 @@ for i in $(find boot/ linux/ package/ toolchain/ -name '*.mk' | sort) ; do
virtual_packages=$(($virtual_packages+1))
elif [ ${infratype} = "generic" ]; then
generic_packages=$(($generic_packages+1))
+ elif [ ${infratype} = "waf" ]; then
+ waf_packages=$(($waf_packages+1))
fi
if grep -qE "^${pkgvariable}_LICENSE[ ]*=" $i ; then
@@ -391,6 +399,10 @@ echo "<td>Packages using the <i>virtual</i> infrastructure</td>"
echo "<td>$virtual_packages</td>"
echo "</tr>"
echo "<tr>"
+echo "<td>Packages using the <i>waf</i> infrastructure</td>"
+echo "<td>$waf_packages</td>"
+echo "</tr>"
+echo "<tr>"
echo "<td>Packages not using any infrastructure</td>"
echo "<td>$manual_packages</td>"
echo "</tr>"
OpenPOWER on IntegriCloud