mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
Multiple unrelated changes
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. Corresponding to flashrom svn r1203. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
This commit is contained in:
5
serial.c
5
serial.c
@ -106,8 +106,9 @@ fdtype sp_openserport(char *dev, unsigned int baud)
|
||||
#ifdef _WIN32
|
||||
HANDLE fd;
|
||||
char *dev2 = dev;
|
||||
if ((strlen(dev) > 3) && (tolower(dev[0]) == 'c')
|
||||
&& (tolower(dev[1]) == 'o') && (tolower(dev[2]) == 'm')) {
|
||||
if ((strlen(dev) > 3) && (tolower((unsigned char)dev[0]) == 'c') &&
|
||||
(tolower((unsigned char)dev[1]) == 'o') &&
|
||||
(tolower((unsigned char)dev[2]) == 'm')) {
|
||||
dev2 = malloc(strlen(dev) + 5);
|
||||
strcpy(dev2, "\\\\.\\");
|
||||
strcpy(dev2 + 4, dev);
|
||||
|
Reference in New Issue
Block a user