diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2014-01-18 22:18:01 +0100 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2014-01-18 22:30:33 +0100 |
commit | 49fef4b6cbed18d2514b681ed46d3c57559f0f99 (patch) | |
tree | 01e5ab3ba6e1d621e0dd9e0cef13b99698cd72a9 /util/board_status | |
parent | 22210dd95ba6a31c169e1fc94f52b04fa5ee773f (diff) | |
download | coreboot-49fef4b6cbed18d2514b681ed46d3c57559f0f99.tar.xz |
boardstatus: Take default board name from MAINBOARD_PART_NUMBER.
Change-Id: I2f775e8919cfd35bbcf5910a8b25776e833ee100
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/4722
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'util/board_status')
-rwxr-xr-x | util/board_status/to-wiki/towiki.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ -184,6 +184,9 @@ EOF 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 |