Vladimir Serbinenko (phcoder(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4650
-gerrit
commit 3f342148eddc5f72581739fe9dd43c1a6712a4da
Author: Vladimir Serbinenko <phcoder(a)gmail.com>
Date: Fri Jun 7 02:11:41 2013 +0200
Make version look like something thinkpad_acpi would accept
thinkpad_acpi checks that BIOS version matches some pattern.
Report version in this form.
Not cleaned up as the idea of this patch seems to be met with resistance.
Can make it Thinkpad-specific if the idea is accepted.
Change-Id: I15e33e87e7a7f42d6a06f12fb39b5172153af8a1
Signed-off-by: Vladimir Serbinenko <phcoder(a)gmail.com>
---
src/arch/x86/boot/smbios.c | 7 +++++--
src/mainboard/lenovo/Kconfig | 4 ++++
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/arch/x86/boot/smbios.c b/src/arch/x86/boot/smbios.c
index 65bf538..25bdb37 100644
--- a/src/arch/x86/boot/smbios.c
+++ b/src/arch/x86/boot/smbios.c
@@ -130,12 +130,15 @@ static int smbios_write_type0(unsigned long *current, int handle)
t->vendor = smbios_add_string(t->eos, "coreboot");
#if !CONFIG_CHROMEOS
+#ifndef CONFIG_VENDOR_VERSION
+#define CONFIG_VENDOR_VERSION ""
+#endif
t->bios_release_date = smbios_add_string(t->eos, COREBOOT_DMI_DATE);
if (strlen(CONFIG_LOCALVERSION))
- t->bios_version = smbios_add_string(t->eos, CONFIG_LOCALVERSION);
+ t->bios_version = smbios_add_string(t->eos, CONFIG_VENDOR_VERSION CONFIG_LOCALVERSION);
else
- t->bios_version = smbios_add_string(t->eos, COREBOOT_VERSION);
+ t->bios_version = smbios_add_string(t->eos, CONFIG_VENDOR_VERSION COREBOOT_VERSION);
#else
#define SPACES \
" "
diff --git a/src/mainboard/lenovo/Kconfig b/src/mainboard/lenovo/Kconfig
index a29fdbf..21413fc 100644
--- a/src/mainboard/lenovo/Kconfig
+++ b/src/mainboard/lenovo/Kconfig
@@ -41,4 +41,8 @@ config MAINBOARD_VENDOR
string
default "Lenovo"
+config VENDOR_VERSION
+ string
+ default "CBET4000 "
+
endif # VENDOR_LENOVO
Vladimir Serbinenko (phcoder(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4711
-gerrit
commit a7490c09b4552560e565a13e3c6cbfd145e5b6f2
Author: Vladimir Serbinenko <phcoder(a)gmail.com>
Date: Sat Jan 18 15:25:47 2014 +0100
boardstatus: Add A8N-SLI as alternative name to A8N-E
Change-Id: I7f8e413265bc6d6d9cace09c79daad6b32b017c1
Signed-off-by: Vladimir Serbinenko <phcoder(a)gmail.com>
---
src/mainboard/asus/a8n_e/board_info.txt | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/mainboard/asus/a8n_e/board_info.txt b/src/mainboard/asus/a8n_e/board_info.txt
index 9d63431..5b230f7 100644
--- a/src/mainboard/asus/a8n_e/board_info.txt
+++ b/src/mainboard/asus/a8n_e/board_info.txt
@@ -1,7 +1,12 @@
Board name: A8N-E
-Category: desktop
Board URL: http://www.asus.com/Motherboards/AMD_Socket_939/A8NE/
Board page: ASUS A8N-E
+
+Board name: A8N-SLI
+Board URL: http://www.asus.com/Motherboards/AMD_Socket_939/A8NSLI/
+Board page: ASUS A8N-SLI
+
+Category: desktop
ROM package: PLCC
ROM socketed: y
Flashrom support: y
Vladimir Serbinenko (phcoder(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4710
-gerrit
commit a16649247e56af5ee4203235c2e5ad434a5ca25c
Author: Vladimir Serbinenko <phcoder(a)gmail.com>
Date: Sat Jan 18 13:11:23 2014 +0100
boardstatus: Take vendor name from src/mainboard/Kconfig.
This way we get right capitalization and abbreviation expansion.
Change-Id: I033a1da3529ef9d232eb48704ab5a7cf5c6536fe
Signed-off-by: Vladimir Serbinenko <phcoder(a)gmail.com>
---
util/board_status/to-wiki/towiki.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/util/board_status/to-wiki/towiki.sh b/util/board_status/to-wiki/towiki.sh
index 31beba2..471dfb8 100755
--- a/util/board_status/to-wiki/towiki.sh
+++ b/util/board_status/to-wiki/towiki.sh
@@ -178,7 +178,11 @@ EOF
fi
fi
- vendor_nice="$(echo "$vendor" |sed -e "s/\(.\)/\u\1/g")";
+ vendor_nice="$(grep -A1 -i "config VENDOR_$vendor" "$COREBOOT_DIR"/src/mainboard/Kconfig|tail -n1|sed -n 's,^[[:space:]]*bool[[:space:]]*"\(.*\)"[[:space:]]*$,\1,p')"
+
+ if [ -z "$vendor_nice" ]; then
+ vendor_nice="$(echo "$vendor" |sed -e "s/\(.\)/\u\1/g")";
+ fi
if [ -z "$board_nice" ]; then
board_nice="$(echo "$board" |sed -e "s,_, ,g;s/\(.\)/\u\1/g")";
fi