From 49fef4b6cbed18d2514b681ed46d3c57559f0f99 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Sat, 18 Jan 2014 22:18:01 +0100 Subject: [PATCH] boardstatus: Take default board name from MAINBOARD_PART_NUMBER. Change-Id: I2f775e8919cfd35bbcf5910a8b25776e833ee100 Signed-off-by: Vladimir Serbinenko Reviewed-on: http://review.coreboot.org/4722 Reviewed-by: Alexandru Gagniuc Tested-by: build bot (Jenkins) --- util/board_status/to-wiki/towiki.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/board_status/to-wiki/towiki.sh b/util/board_status/to-wiki/towiki.sh index 19ccf85457..35949e4839 100755 --- a/util/board_status/to-wiki/towiki.sh +++ b/util/board_status/to-wiki/towiki.sh @@ -183,6 +183,9 @@ EOF if [ -z "$vendor_nice" ]; then vendor_nice="$(echo "$vendor" |sed -e "s/\(.\)/\u\1/g")"; fi + if [ -z "$board_nice" ]; then + board_nice="$(grep -A2 -i "config MAINBOARD_PART_NUMBER" "$COREBOOT_DIR"/src/mainboard/$vendor/$board/Kconfig|tail -n1|sed -n 's,^[[:space:]]*default[[:space:]]*"\(.*\)"[[:space:]]*$,\1,p')" + fi if [ -z "$board_nice" ]; then board_nice="$(echo "$board" |sed -e "s,_, ,g;s/\(.\)/\u\1/g")"; fi