Author: mkarcher Date: Tue Feb 16 01:49:50 2010 New Revision: 905 URL: http://flashrom.org/trac/coreboot/changeset/905
Log: more NetBSD fixes (w/ patch)
Cast input to tolower() to unsigned char to work around how tolower() is implemented on NetBSD.
Also, use CPPFLAGS (rather than overriding CFLAGS) for the NetBSD/DragonFly build example.
Signed-off-by: Jonathan A. Kollasch jakllsch@kollasch.net Acked-by: Michael Karcher flashrom@mkarcher.dialup.fu-berlin.de
Modified: trunk/README trunk/dummyflasher.c
Modified: trunk/README ============================================================================== --- trunk/README Sun Feb 14 02:20:28 2010 (r904) +++ trunk/README Tue Feb 16 01:49:50 2010 (r905) @@ -68,7 +68,7 @@ To compile on NetBSD or DragonFly BSD, use:
ln -s /usr/pkg/include/pciutils pci - gmake CFLAGS=-I. LDFLAGS="-L/usr/pkg/lib -Wl,-rpath-link,/usr/pkg/lib" + gmake CPPFLAGS=-I. LDFLAGS="-L/usr/pkg/lib -Wl,-rpath-link,/usr/pkg/lib"
To compile and run on Darwin/Mac OS X:
Modified: trunk/dummyflasher.c ============================================================================== --- trunk/dummyflasher.c Sun Feb 14 02:20:28 2010 (r904) +++ trunk/dummyflasher.c Tue Feb 16 01:49:50 2010 (r905) @@ -38,7 +38,8 @@ programmer_param = strdup("parallel,lpc,fwh,spi"); /* Convert the parameters to lowercase. */ for (i = 0; programmer_param[i] != '\0'; i++) - programmer_param[i] = (char)tolower(programmer_param[i]); + programmer_param[i] = + (char)tolower((unsigned char)programmer_param[i]);
buses_supported = CHIP_BUSTYPE_NONE; if (strstr(programmer_param, "parallel")) {