All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [pull request] Pull request for branch for-2011.05/pkg-stats-improvements
@ 2011-02-28 22:24 Thomas Petazzoni
  2011-02-28 22:24 ` [Buildroot] [PATCH 1/2] pkg-stats: support CMAKETARGETS and update list of .mk to ignore Thomas Petazzoni
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2011-02-28 22:24 UTC (permalink / raw)
  To: buildroot

The following changes since commit 910a54002b9734b00a04111841cc1f628fec0a04:
  Peter Korsgaard (1):
        xerces: disable parallel builds

are available in the git repository at:

  git://git.busybox.net/~tpetazzoni/git/buildroot for-2011.05/pkg-stats-improvements

Thomas Petazzoni (2):
      pkg-stats: support CMAKETARGETS and update list of .mk to ignore
      pkg-stats: add statistics about number of patches per package

 scripts/pkg-stats |   58 +++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 54 insertions(+), 4 deletions(-)

Thanks,
-- 
Thomas Petazzoni

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2] pkg-stats: support CMAKETARGETS and update list of .mk to ignore
  2011-02-28 22:24 [Buildroot] [pull request] Pull request for branch for-2011.05/pkg-stats-improvements Thomas Petazzoni
@ 2011-02-28 22:24 ` Thomas Petazzoni
  2011-02-28 22:24 ` [Buildroot] [PATCH 2/2] pkg-stats: add statistics about number of patches per package Thomas Petazzoni
  2011-03-05 14:30 ` [Buildroot] [pull request] Pull request for branch for-2011.05/pkg-stats-improvements Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2011-02-28 22:24 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 scripts/pkg-stats |   36 ++++++++++++++++++++++++++++++++----
 1 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/scripts/pkg-stats b/scripts/pkg-stats
index 01af89d..9607da2 100755
--- a/scripts/pkg-stats
+++ b/scripts/pkg-stats
@@ -53,6 +53,7 @@ tr.correct td {
 <td rowspan=\"2\">Package</td>
 <td colspan=\"2\" class=\"centered\">AUTOTARGETS</td>
 <td colspan=\"2\" class=\"centered\">GENTARGETS</td>
+<td colspan=\"2\" class=\"centered\">CMAKETARGETS</td>
 <td colspan=\"2\" class=\"centered\">manual</td>
 <td rowspan=\"2\" class=\"centered\">Actions</td>
 </tr>
@@ -63,6 +64,8 @@ tr.correct td {
 <td class=\"centered\">target</td>
 <td class=\"centered\">host</td>
 <td class=\"centered\">target</td>
+<td class=\"centered\">host</td>
+<td class=\"centered\">target</td>
 </tr>"
 
 convert_to_generic_target=0
@@ -71,14 +74,13 @@ convert_to_autotools=0
 cnt=1
 for i in $(find package/ -name '*.mk') ; do
 
-    if test $i = "package/mtd/mtd.mk" -o \
+    if test \
 	$i = "package/java/java.mk" -o \
-	$i = "package/database/database.mk" -o \
-	$i = "package/editors/editors.mk" -o \
 	$i = "package/games/games.mk" -o \
 	$i = "package/multimedia/multimedia.mk" -o \
 	$i = "package/customize/customize.mk" -o \
 	$i = "package/gnuconfig/gnuconfig.mk" -o \
+	$i = "package/matchbox/matchbox.mk" -o \
 	$i = "package/x11r7/x11r7.mk" ; then
 	echo "skipping $i" 1>&2
 	continue
@@ -88,6 +90,8 @@ for i in $(find package/ -name '*.mk') ; do
 
     is_auto_host=0
     is_auto_target=0
+    is_cmake_host=0
+    is_cmake_target=0
     is_pkg_target=0
     is_pkg_host=0
     is_manual_target=0
@@ -109,6 +113,14 @@ for i in $(find package/ -name '*.mk') ; do
 	is_pkg_target=1
     fi
 
+    if grep -E "\(call CMAKETARGETS,[^,]*,[^,]*,host\)" $i > /dev/null ; then
+	is_cmake_host=1
+    fi
+
+    if grep -E "\(call CMAKETARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
+	is_cmake_target=1
+    fi
+
     pkg=$(basename $i)
     pkg=${pkg%.mk}
 
@@ -116,7 +128,7 @@ for i in $(find package/ -name '*.mk') ; do
 	is_manual_host=1
     fi
 
-    if test $is_pkg_target -eq 0 -a $is_auto_target -eq 0 ; then
+    if test $is_pkg_target -eq 0 -a $is_auto_target -eq 0 -a $is_cmake_target -eq 0; then
 	is_manual_target=1
     fi
 
@@ -184,6 +196,22 @@ for i in $(find package/ -name '*.mk') ; do
     echo "</td>"
 
     echo "<td class=\"centered\">"
+    if [ $is_cmake_host -eq 1 ] ; then
+	echo "<b>YES</b>"
+    else
+	echo "NO"
+    fi
+    echo "</td>"
+
+    echo "<td class=\"centered\">"
+    if [ $is_cmake_target -eq 1 ] ; then
+	echo "<b>YES</b>"
+    else
+	echo "NO"
+    fi
+    echo "</td>"
+
+    echo "<td class=\"centered\">"
     if [ $is_manual_host -eq 1 ] ; then
 	echo "<b>YES</b>"
     else
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] pkg-stats: add statistics about number of patches per package
  2011-02-28 22:24 [Buildroot] [pull request] Pull request for branch for-2011.05/pkg-stats-improvements Thomas Petazzoni
  2011-02-28 22:24 ` [Buildroot] [PATCH 1/2] pkg-stats: support CMAKETARGETS and update list of .mk to ignore Thomas Petazzoni
@ 2011-02-28 22:24 ` Thomas Petazzoni
  2011-03-05 14:30 ` [Buildroot] [pull request] Pull request for branch for-2011.05/pkg-stats-improvements Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2011-02-28 22:24 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 scripts/pkg-stats |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/scripts/pkg-stats b/scripts/pkg-stats
index 9607da2..7bb2928 100755
--- a/scripts/pkg-stats
+++ b/scripts/pkg-stats
@@ -51,6 +51,7 @@ tr.correct td {
 <tr>
 <td rowspan=\"2\">Id</td>
 <td rowspan=\"2\">Package</td>
+<td>Patch count</td>
 <td colspan=\"2\" class=\"centered\">AUTOTARGETS</td>
 <td colspan=\"2\" class=\"centered\">GENTARGETS</td>
 <td colspan=\"2\" class=\"centered\">CMAKETARGETS</td>
@@ -71,6 +72,7 @@ tr.correct td {
 convert_to_generic_target=0
 convert_to_generic_host=0
 convert_to_autotools=0
+total_patch_count=0
 cnt=1
 for i in $(find package/ -name '*.mk') ; do
 
@@ -163,6 +165,22 @@ for i in $(find package/ -name '*.mk') ; do
     echo "<td>$cnt</td>"
     echo "<td>$i</td>"
 
+    package_dir=$(dirname $i)
+    patch_count=$(find ${package_dir} -name '*.patch' | wc -l)
+    total_patch_count=$(($total_patch_count+$patch_count))
+
+    if test $patch_count -lt 1 ; then
+	patch_count_color="#00ff00"
+    elif test $patch_count -lt 5 ; then
+	patch_count_color="#ffc600"
+    else
+	patch_count_color="#ff0000"
+    fi
+
+    echo "<td class=\"centered\" style=\"color: $patch_count_color; font-weight: bold;\">"
+    echo $patch_count
+    echo "</td>"
+
     echo "<td class=\"centered\">"
     if [ $is_auto_host -eq 1 ] ; then
 	echo "<b>YES</b>"
@@ -256,6 +274,10 @@ echo "<td>Packages to convert to host autotools</td>"
 echo "<td>$convert_to_host_autotools</td>"
 echo "</tr>"
 echo "<tr>"
+echo "<td>Number of patches in all packages</td>"
+echo "<td>$total_patch_count</td>"
+echo "</tr>"
+echo "<tr>"
 echo "<td>TOTAL</td>"
 echo "<td>$cnt</td>"
 echo "</tr>"
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [pull request] Pull request for branch for-2011.05/pkg-stats-improvements
  2011-02-28 22:24 [Buildroot] [pull request] Pull request for branch for-2011.05/pkg-stats-improvements Thomas Petazzoni
  2011-02-28 22:24 ` [Buildroot] [PATCH 1/2] pkg-stats: support CMAKETARGETS and update list of .mk to ignore Thomas Petazzoni
  2011-02-28 22:24 ` [Buildroot] [PATCH 2/2] pkg-stats: add statistics about number of patches per package Thomas Petazzoni
@ 2011-03-05 14:30 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2011-03-05 14:30 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> The following changes since commit 910a54002b9734b00a04111841cc1f628fec0a04:
 Thomas>   Peter Korsgaard (1):
 Thomas>         xerces: disable parallel builds

 Thomas> are available in the git repository at:

 Thomas>   git://git.busybox.net/~tpetazzoni/git/buildroot for-2011.05/pkg-stats-improvements

 Thomas> Thomas Petazzoni (2):
 Thomas>       pkg-stats: support CMAKETARGETS and update list of .mk to ignore
 Thomas>       pkg-stats: add statistics about number of patches per package

Pulled, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-05 14:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-28 22:24 [Buildroot] [pull request] Pull request for branch for-2011.05/pkg-stats-improvements Thomas Petazzoni
2011-02-28 22:24 ` [Buildroot] [PATCH 1/2] pkg-stats: support CMAKETARGETS and update list of .mk to ignore Thomas Petazzoni
2011-02-28 22:24 ` [Buildroot] [PATCH 2/2] pkg-stats: add statistics about number of patches per package Thomas Petazzoni
2011-03-05 14:30 ` [Buildroot] [pull request] Pull request for branch for-2011.05/pkg-stats-improvements Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.