summaryrefslogtreecommitdiffstats
path: root/cbtable.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-12-13 22:28:00 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-12-13 22:28:00 +0000
commit66ef4e5ff32b1d19281c9d6723b1acfe566f9763 (patch)
treedf65fe458cd52070208d9e46e23418a015b16696 /cbtable.c
parenta7e30503fad58008e739627dcb84348ded8ef572 (diff)
downloadast2050-flashrom-66ef4e5ff32b1d19281c9d6723b1acfe566f9763.zip
ast2050-flashrom-66ef4e5ff32b1d19281c9d6723b1acfe566f9763.tar.gz
Internal (onboard) programming was the only feature which could not be disabled
Make various pieces of code conditional on support for internal programming. Code shared between PCI device programmers and onboard programming is now conditional as well. It is now possible to build only with dummy support: make CONFIG_INTERNAL=no CONFIG_NIC3COM=no CONFIG_SATASII=no CONFIG_DRKAISER=no CONFIG_SERPROG=no CONFIG_FT2232SPI=no This allows building for a specific use case only, and it also facilitates porting to a new architecture because it is possible to focus on highlevel code only. Note: Either internal or dummy programmer needs to be compiled in due to the current behaviour of always picking a default programmer if -p is not specified. Picking an arbitrary external programmer as default wouldn't make sense. Build and runtime tested in all 1024 possible build combinations. The only failures are by design as mentioned above. Corresponding to flashrom svn r797. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to 'cbtable.c')
-rw-r--r--cbtable.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/cbtable.c b/cbtable.c
index 9d7e758..2bc1bfa 100644
--- a/cbtable.c
+++ b/cbtable.c
@@ -30,6 +30,20 @@
char *lb_part = NULL, *lb_vendor = NULL;
int partvendor_from_cbtable = 0;
+void lb_vendor_dev_from_string(char *boardstring)
+{
+ char *tempstr2 = NULL;
+ strtok(boardstring, ":");
+ tempstr2 = strtok(NULL, ":");
+ if (tempstr2) {
+ lb_vendor = boardstring;
+ lb_part = tempstr2;
+ } else {
+ lb_vendor = NULL;
+ lb_part = boardstring;
+ }
+}
+
static unsigned long compute_checksum(void *addr, unsigned long length)
{
uint8_t *ptr;
OpenPOWER on IntegriCloud