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:
parent
22210dd95b
commit
49fef4b6cb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue