Changeset 1203


Ignore:
Timestamp:
10/08/10 14:40:09 (20 months ago)
Author:
hailfinger
Message:

CONFIG_BITBANG_SPI was not selected if CONFIG_NICINTEL_SPI was on by
default.
Wiki output was missing all flash chips if CONFIG_INTERNAL was not
selected.
Use correct type for toupper()/tolower()/isspace() functions.
Specify software requirements in a generic way.
Non-x86 compilation does not work with the default programmer set, so
list the make parameters which result in a working build.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>
Acked-by: Michael Karcher <flashrom@…>

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r1198 r1203  
    116116CONFIG_RAYER_SPI ?= yes 
    117117 
     118# Always enable 3Com NICs for now. 
     119CONFIG_NIC3COM ?= yes 
     120 
     121# Enable NVIDIA graphics cards. Note: write and erase do not work properly. 
     122CONFIG_GFXNVIDIA ?= yes 
     123 
     124# Always enable SiI SATA controllers for now. 
     125CONFIG_SATASII ?= yes 
     126 
     127# Highpoint (HPT) ATA/RAID controller support. 
     128# IMPORTANT: This code is not yet working! 
     129CONFIG_ATAHPT ?= no 
     130 
     131# Always enable FT2232 SPI dongles for now. 
     132CONFIG_FT2232_SPI ?= yes 
     133 
     134# Always enable dummy tracing for now. 
     135CONFIG_DUMMY ?= yes 
     136 
     137# Always enable Dr. Kaiser for now. 
     138CONFIG_DRKAISER ?= yes 
     139 
     140# Always enable Realtek NICs for now. 
     141CONFIG_NICREALTEK ?= yes 
     142 
     143# Disable National Semiconductor NICs until support is complete and tested. 
     144CONFIG_NICNATSEMI ?= no 
     145 
     146# Always enable SPI on Intel NICs for now. 
     147CONFIG_NICINTEL_SPI ?= yes 
     148 
     149# Always enable Bus Pirate SPI for now. 
     150CONFIG_BUSPIRATE_SPI ?= yes 
     151 
     152# Disable Dediprog SF100 until support is complete and tested. 
     153CONFIG_DEDIPROG ?= no 
     154 
     155# Disable wiki printing by default. It is only useful if you have wiki access. 
     156CONFIG_PRINT_WIKI ?= no 
     157 
    118158# Bitbanging SPI infrastructure, default off unless needed. 
    119159ifeq ($(CONFIG_RAYER_SPI), yes) 
     
    130170endif 
    131171endif 
    132  
    133 # Always enable 3Com NICs for now. 
    134 CONFIG_NIC3COM ?= yes 
    135  
    136 # Enable NVIDIA graphics cards. Note: write and erase do not work properly. 
    137 CONFIG_GFXNVIDIA ?= yes 
    138  
    139 # Always enable SiI SATA controllers for now. 
    140 CONFIG_SATASII ?= yes 
    141  
    142 # Highpoint (HPT) ATA/RAID controller support. 
    143 # IMPORTANT: This code is not yet working! 
    144 CONFIG_ATAHPT ?= no 
    145  
    146 # Always enable FT2232 SPI dongles for now. 
    147 CONFIG_FT2232_SPI ?= yes 
    148  
    149 # Always enable dummy tracing for now. 
    150 CONFIG_DUMMY ?= yes 
    151  
    152 # Always enable Dr. Kaiser for now. 
    153 CONFIG_DRKAISER ?= yes 
    154  
    155 # Always enable Realtek NICs for now. 
    156 CONFIG_NICREALTEK ?= yes 
    157  
    158 # Disable National Semiconductor NICs until support is complete and tested. 
    159 CONFIG_NICNATSEMI ?= no 
    160  
    161 # Always enable SPI on Intel NICs for now. 
    162 CONFIG_NICINTEL_SPI ?= yes 
    163  
    164 # Always enable Bus Pirate SPI for now. 
    165 CONFIG_BUSPIRATE_SPI ?= yes 
    166  
    167 # Disable Dediprog SF100 until support is complete and tested. 
    168 CONFIG_DEDIPROG ?= no 
    169  
    170 # Disable wiki printing by default. It is only useful if you have wiki access. 
    171 CONFIG_PRINT_WIKI ?= no 
    172172 
    173173ifeq ($(CONFIG_INTERNAL), yes) 
  • trunk/README

    r1198 r1203  
    4343------------------ 
    4444 
    45 To build flashrom you need to install the following packages or ports: 
     45To build flashrom you need to install the following software: 
     46 
     47 * pciutils+libpci (if you want support for mainboard or PCI device flashing) 
     48 * libusb (if you want FT2232 or Dediprog support) 
     49 * libftdi (if you want FT2232 support) 
    4650 
    4751Linux et al: 
     
    112116 CWSDPMI.EXE is in the current directory. 
    113117 
     118Processor architecture dependent features: 
     119 
     120 On non-x86 architectures you have to disable a few programmers because they 
     121 use port-based I/O which is not directly available on non-x86. Please add 
     122 CONFIG_RAYER_SPI=no CONFIG_NIC3COM=no CONFIG_ATAHPT=no CONFIG_NICREALTEK=no \ 
     123 CONFIG_NICNATSEMI=no 
     124 as parameters to the "make" invocation. 
     125 Besides that, the internal programmer is only supported on x86 and MIPS. On 
     126 other architectures, please add 
     127 CONFIG_INTERNAL=no 
     128 as parameter to the "make" invocation. 
     129 
    114130Installation 
    115131------------ 
  • trunk/ft2232_spi.c

    r1199 r1203  
    149149        arg = extract_programmer_param("port"); 
    150150        if (arg) { 
    151                 switch (toupper(*arg)) { 
     151                switch (toupper((unsigned char)*arg)) { 
    152152                case 'A': 
    153153                        ft2232_interface = INTERFACE_A; 
  • trunk/print_wiki.c

    r1151 r1203  
    269269 
    270270        printf(wiki_header, ctime(&t), flashrom_version); 
     271        print_supported_chips_wiki(2); 
    271272#if CONFIG_INTERNAL == 1 
    272         print_supported_chips_wiki(2); 
    273273        print_supported_chipsets_wiki(3); 
    274274        print_supported_boards_wiki(); 
  • trunk/processor_enable.c

    r1183 r1203  
    5454                        break; 
    5555                ptr = line; 
    56                 while (*ptr && isspace(*ptr)) 
     56                while (*ptr && isspace((unsigned char)*ptr)) 
    5757                        ptr++; 
    5858                /* "cpu" part appears only with some Linux versions.  */ 
    5959                if (strncmp(ptr, "cpu", sizeof("cpu") - 1) == 0) 
    6060                        ptr += sizeof("cpu") - 1; 
    61                 while (*ptr && isspace(*ptr)) 
     61                while (*ptr && isspace((unsigned char)*ptr)) 
    6262                        ptr++; 
    6363                if (strncmp(ptr, "model", sizeof("model") - 1) != 0) 
    6464                        continue; 
    6565                ptr += sizeof("model") - 1; 
    66                 while (*ptr && isspace(*ptr)) 
     66                while (*ptr && isspace((unsigned char)*ptr)) 
    6767                        ptr++; 
    6868                if (*ptr != ':') 
    6969                        continue; 
    7070                ptr++; 
    71                 while (*ptr && isspace(*ptr)) 
     71                while (*ptr && isspace((unsigned char)*ptr)) 
    7272                        ptr++; 
    7373                fclose(cpuinfo); 
  • trunk/serial.c

    r1196 r1203  
    107107        HANDLE fd; 
    108108        char *dev2 = dev; 
    109         if ((strlen(dev) > 3) && (tolower(dev[0]) == 'c') 
    110             && (tolower(dev[1]) == 'o') && (tolower(dev[2]) == 'm')) { 
     109        if ((strlen(dev) > 3) && (tolower((unsigned char)dev[0]) == 'c') && 
     110            (tolower((unsigned char)dev[1]) == 'o') && 
     111            (tolower((unsigned char)dev[2]) == 'm')) { 
    111112                dev2 = malloc(strlen(dev) + 5); 
    112113                strcpy(dev2, "\\\\.\\"); 
Note: See TracChangeset for help on using the changeset viewer.