[coreboot-gerrit] New patch to review for coreboot: a166492 boardstatus: Take vendor name from src/mainboard/Kconfig.

Vladimir Serbinenko (phcoder@gmail.com) gerrit at coreboot.org
Sat Jan 18 13:12:33 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/4710

-gerrit

commit a16649247e56af5ee4203235c2e5ad434a5ca25c
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date:   Sat Jan 18 13:11:23 2014 +0100

    boardstatus: Take vendor name from src/mainboard/Kconfig.
    
    This way we get right capitalization and abbreviation expansion.
    
    Change-Id: I033a1da3529ef9d232eb48704ab5a7cf5c6536fe
    Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
 util/board_status/to-wiki/towiki.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/util/board_status/to-wiki/towiki.sh b/util/board_status/to-wiki/towiki.sh
index 31beba2..471dfb8 100755
--- a/util/board_status/to-wiki/towiki.sh
+++ b/util/board_status/to-wiki/towiki.sh
@@ -178,7 +178,11 @@ EOF
 	    fi
 	fi
 
-	vendor_nice="$(echo "$vendor" |sed -e "s/\(.\)/\u\1/g")";
+	vendor_nice="$(grep -A1 -i "config VENDOR_$vendor" "$COREBOOT_DIR"/src/mainboard/Kconfig|tail -n1|sed -n 's,^[[:space:]]*bool[[:space:]]*"\(.*\)"[[:space:]]*$,\1,p')"
+
+	if [ -z "$vendor_nice" ]; then
+	    vendor_nice="$(echo "$vendor" |sed -e "s/\(.\)/\u\1/g")";
+	fi
 	if [ -z "$board_nice" ]; then
 	    board_nice="$(echo "$board" |sed -e "s,_, ,g;s/\(.\)/\u\1/g")";
 	fi



More information about the coreboot-gerrit mailing list