summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-11-23 10:32:03 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2014-12-04 09:03:24 +0100
commit2697c0767b9983c63e19d109bea5b9558088a6d6 (patch)
tree492c1037de9e4d01360c0eae9935e4f24ad2d490
parent20734594f94f048d74d9ee9ce3b7d93c83beb630 (diff)
to-wiki.sh: Show the same status for clones.
While it may not be the best way theoretically as theoretically only one of clones may fail if clones are not perfect, in practice there is more variance between e.g. different X60 variants than between most of the clones, yet we put all X60 variants together. Also in most cases we don't even have a way to tell the clones apart. Change-Id: I786aeed55300026fae0d9f0497d0c830a9f5e452 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/7564 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
-rwxr-xr-xutil/board_status/to-wiki/towiki.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/util/board_status/to-wiki/towiki.sh b/util/board_status/to-wiki/towiki.sh
index a0b22da62b..3e80d44cb2 100755
--- a/util/board_status/to-wiki/towiki.sh
+++ b/util/board_status/to-wiki/towiki.sh
@@ -209,12 +209,15 @@ EOF
board_nice="$(echo "$board" |sed -e "s,_, ,g;s/\(.\)/\u\1/g")";
fi
- lastgood="$(echo "$have"| sed -n "/^$vendor\/$board:/ s,^[^:]*:,,gp")"
-
- if ! [ -z "$clone_of" ]; then
- vendor_board_dir="$COREBOOT_DIR"/src/mainboard/"$clone_of";
+ venboard="$vendor/$board"
+ if [ -n "$clone_of" ]; then
+ venboard="$clone_of"
fi
+ lastgood="$(echo "$have"| sed -n "/^$(echo "$venboard"|sed 's,/,\\/,g'):/ s,^[^:]*:,,gp")"
+
+ vendor_board_dir="$COREBOOT_DIR"/src/mainboard/"$venboard";
+
northbridge="$(sed -n "/^[[:space:]]*select NORTHBRIDGE_/ s,^[[:space:]]*select NORTHBRIDGE_,,p" "$vendor_board_dir/Kconfig")"
northbridge_nice="$(echo "$northbridge"|sed 's,AMD_AGESA_FAMILY\([0-9a-fA-F]*\)\(.*\),AMD Family \1h\2 (AGESA),g;s,AMD_FAMILY\([0-9a-fA-F]*\),AMD Family \1h,g;s,AMD_AMDFAM\([0-9a-fA-F]*\),AMD Family \1h,g;s,_, ,g;s,INTEL,IntelĀ®,g;')"