[coreboot-gerrit] Patch set updated for coreboot: f29ffc9 boardstatus: Remove category retrieval from board_info.txt

Vladimir Serbinenko (phcoder@gmail.com) gerrit at coreboot.org
Sun Jan 19 19:22:41 CET 2014


Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4753

-gerrit

commit f29ffc94f1a75e9c23b6d40c2718136c8be4f123
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date:   Sun Jan 19 15:49:10 2014 +0100

    boardstatus: Remove category retrieval from board_info.txt
    
    Change-Id: I16795e0d8a2ced43d1b4493a34acd812ab6295aa
    Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
 util/board_status/to-wiki/towiki.sh | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/util/board_status/to-wiki/towiki.sh b/util/board_status/to-wiki/towiki.sh
index 43ee3c1..46d99f0 100755
--- a/util/board_status/to-wiki/towiki.sh
+++ b/util/board_status/to-wiki/towiki.sh
@@ -146,22 +146,20 @@ EOF
 		fi
 
 		if [ -f "$vendor_board_dir/board_info.txt" ]; then
-			cur_category="$(sed -n "/^[[:space:]]*Category:/ s,^[[:space:]]*Category:[[:space:]]*,,p" "$vendor_board_dir/board_info.txt")"
 			clone_of="$(sed -n "/^[[:space:]]*Clone of:/ s,^[[:space:]]*Clone of:[[:space:]]*,,p" "$vendor_board_dir/board_info.txt")"
 		else
-			cur_category=
 			clone_of=
 		fi
-		if [ -z "$cur_category" ]; then
-		        # eval board may be of other type as well. Prefer "eval"
-		        # desktop is pretty generic, keep it for last
-			for candidate in "eval" server laptop half mini settop emulation sbc misc desktop; do
-				if grep -i BOARD_TYPE_"$candidate" "$vendor_board_dir/Kconfig" > /dev/null ; then
-					cur_category="$candidate"
-					break
-				fi
-			done
-		fi
+
+		cur_category=
+		# eval board may be of other type as well. Prefer "eval"
+		# desktop is pretty generic, keep it for last
+		for candidate in "eval" server laptop half mini settop emulation sbc misc desktop; do
+			if grep -i BOARD_TYPE_"$candidate" "$vendor_board_dir/Kconfig" > /dev/null ; then
+				cur_category="$candidate"
+				break
+			fi
+		done
 
 		if [ -z "$cur_category" ] && ! [ -z "$clone_of" ]; then
 		        # eval board may be of other type as well. Prefer "eval"



More information about the coreboot-gerrit mailing list