1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 07:02:34 +02:00

Fix compilation on Nexenta which is Ubuntu with a Solaris kernel

Corresponding to flashrom svn r686.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
This commit is contained in:
Carl-Daniel Hailfinger 2009-08-17 16:30:53 +00:00
parent 4449868623
commit 10572fa08a
2 changed files with 10 additions and 4 deletions

View File

@ -70,6 +70,9 @@ CONFIG_SERPROG = yes
ifeq ($(CONFIG_SERPROG), yes)
FEATURE_CFLAGS += -D'SERPROG_SUPPORT=1'
OBJS += serprog.o
ifeq ($(OS_ARCH), SunOS)
LIBS += -lsocket
endif
endif
FEATURE_CFLAGS += $(shell LC_ALL=C grep -q "FTDISUPPORT := yes" .features && printf "%s" "-D'FT2232_SPI_SUPPORT=1'")

11
README
View File

@ -43,7 +43,7 @@ Linux et al:
* pciutils
* pciutils-devel / pciutils-dev / libpci-dev
* zlib-devel / zlib1g-dev
* zlib-devel / zlib1g-dev (only needed if libpci is static)
On FreeBSD, you need the following ports:
@ -58,15 +58,18 @@ To compile on FreeBSD, use:
gmake
To compile on Nexenta, use:
make
To compile on Solaris, use:
gmake LDFLAGS="-L$pathtolibpci -lpci -lz" CC="gcc -I$pathtopciheaders" \
CFLAGS=-O2
gmake LDFLAGS="-L$pathtolibpci" CC="gcc -I$pathtopciheaders" CFLAGS=-O2
To compile on DragonFly BSD, use:
ln -s /usr/pkg/include/pciutils pci
gmake CFLAGS=-I. LDFLAGS="-L/usr/pkg/lib -lpci -lz"
gmake CFLAGS=-I. LDFLAGS="-L/usr/pkg/lib"
To compile and run on Darwin/Mac OS X: