[Buildroot] [PATCH 2/2] pkg-stats: fix proper identification of package infrastructure

Jerzy Grzegorek jerzy.grzegorek at trzebnica.net
Wed Sep 11 09:12:19 UTC 2013


Typically each package invokes the macro which generates the Makefile code, in the way
like this: e.g. $(eval $(generic-package)) or $(eval $(autotools-package)) ,
but a few packages have to invoke this macro in other way:
$(eval $(call generic-package)) e.g. dhcpcd.mk
$(eval $(call autotools-package)) e.g. wireshark.mk .
This patch make changes to fix proper identification of package infrastructure.

Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek at trzebnica.net>
---
 support/scripts/pkg-stats |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 4effa59..e982d9c 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -118,7 +118,7 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do
 	hashost=1
     fi
 
-    if grep -E "\(autotools-package\)" $i > /dev/null ; then
+    if grep -E "autotools-package\)" $i > /dev/null ; then
 	infratype="autotools"
 	hastarget=1
     fi
@@ -128,7 +128,7 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do
 	hashost=1
     fi
 
-    if grep -E "\(generic-package\)" $i > /dev/null ; then
+    if grep -E "generic-package\)" $i > /dev/null ; then
 	infratype="generic"
 	hastarget=1
     fi
-- 
1.7.9.5




More information about the buildroot mailing list