board-status: Add field for release year
Add the option to add a release year to each mainboard to get a sense of how old the hardware is. Change-Id: Id43c80fdf8bf65241b2be92678616d1774529f8c Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/9945 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Alexander Couzens <lynxis@fe80.eu>
This commit is contained in:
parent
786879777a
commit
d555d5a2b5
|
@ -176,6 +176,7 @@ EOF
|
||||||
vendor_cooperation_page="$(sed -n "/^[[:space:]]*Vendor cooperation page:/ s,^[[:space:]]*Vendor cooperation page:[[:space:]]*,,p" "$vendor_board_dir/board_info.txt")"
|
vendor_cooperation_page="$(sed -n "/^[[:space:]]*Vendor cooperation page:/ s,^[[:space:]]*Vendor cooperation page:[[:space:]]*,,p" "$vendor_board_dir/board_info.txt")"
|
||||||
board_url="$(sed -n "/^[[:space:]]*Board URL:/ s,^[[:space:]]*Board URL:[[:space:]]*,,p" "$vendor_board_dir/board_info.txt")"
|
board_url="$(sed -n "/^[[:space:]]*Board URL:/ s,^[[:space:]]*Board URL:[[:space:]]*,,p" "$vendor_board_dir/board_info.txt")"
|
||||||
clone_of="$(sed -n "/^[[:space:]]*Clone of:/ s,^[[:space:]]*Clone of:[[:space:]]*,,p" "$vendor_board_dir/board_info.txt")"
|
clone_of="$(sed -n "/^[[:space:]]*Clone of:/ s,^[[:space:]]*Clone of:[[:space:]]*,,p" "$vendor_board_dir/board_info.txt")"
|
||||||
|
release_year="$(sed -n "/^[[:space:]]*Release year:/ s,^[[:space:]]*Release year:[[:space:]]*,,p" "$vendor_board_dir/board_info.txt")"
|
||||||
else
|
else
|
||||||
vendor_2nd=
|
vendor_2nd=
|
||||||
board_nice=
|
board_nice=
|
||||||
|
@ -187,6 +188,7 @@ EOF
|
||||||
vendor_cooperation_page=
|
vendor_cooperation_page=
|
||||||
board_url=
|
board_url=
|
||||||
clone_of=
|
clone_of=
|
||||||
|
release_year=
|
||||||
fi
|
fi
|
||||||
if [ "$last_vendor" != "$vendor" ]; then
|
if [ "$last_vendor" != "$vendor" ]; then
|
||||||
last_vendor="$vendor"
|
last_vendor="$vendor"
|
||||||
|
@ -403,6 +405,10 @@ EOF
|
||||||
|
|
||||||
echo "| [[Board:$vendor/$board|$board_nice]]"
|
echo "| [[Board:$vendor/$board|$board_nice]]"
|
||||||
|
|
||||||
|
if ! [ -z "$release_year" ]; then
|
||||||
|
echo " (released $release_year)"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$lastgood" ]; then
|
if [ -z "$lastgood" ]; then
|
||||||
echo "| style=\"background:red\" | Unknown"
|
echo "| style=\"background:red\" | Unknown"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue