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)
This commit is contained in:
Vladimir Serbinenko 2014-01-18 22:18:01 +01:00
parent 22210dd95b
commit 49fef4b6cb
1 changed files with 3 additions and 0 deletions

View File

@ -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