summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2011-07-03 19:44:12 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2011-07-03 19:44:12 +0000
commitd5e85d674b512b542c5e0f1b383b1cf5a0e2f6b8 (patch)
tree5069863aa7d5100dfc18010d20f19fd8d8df2884 /flashrom.c
parent10b3e228703c8d5b42555a60954daf3ea01c2f16 (diff)
downloadast2050-flashrom-d5e85d674b512b542c5e0f1b383b1cf5a0e2f6b8.zip
ast2050-flashrom-d5e85d674b512b542c5e0f1b383b1cf5a0e2f6b8.tar.gz
Fix and improve Windows/MinGW/MSYS build
- Makefile: Use $(OS_ARCH) to add some MinGW-specific workarounds and settings, so that a simple "make" is sufficient on MinGW (instead of manual Makefile hacking). - Explicitly set CC=gcc in the Makefile, otherwise you get an error like "cc: command not found" on MinGW. - MinGW doesn't have ffs(), use gcc's __builtin_ffs() instead. - Add /usr/local/include and /usr/local/lib to CPPFLAGS/LDFLAGS, that's where libusb-win32 and libftdi stuff is usually placed on MinGW/MSYS. - Disable serprog (no sockets) and all PCI-based programmers (no libpci) for now. That leaves dummy, ft2232_spi, and buspirate_spi enabled on MinGW per default. - serial.c: Use correct type for 'tmp', both on Windows/MinGW (DWORD) and POSIX (ssize_t). Corresponding to flashrom svn r1363. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'flashrom.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud