Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 401056 Details for
Bug 546276
sys-apps/flashrom: add support for dev-embedded/libftdi-1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds support for libftdi1
flashrom-0.9.7-libftdi1.patch (text/plain), 2.67 KB, created by
Daniel Rozsnyo
on 2015-04-11 16:25:53 UTC
(
hide
)
Description:
Adds support for libftdi1
Filename:
MIME Type:
Creator:
Daniel Rozsnyo
Created:
2015-04-11 16:25:53 UTC
Size:
2.67 KB
patch
obsolete
>--- Makefile.0.9.7 2013-08-14 00:00:00.000000000 +0200 >+++ Makefile 2015-04-11 17:57:13.000000000 +0200 >@@ -492,19 +492,21 @@ > ifeq ($(CONFIG_FT2232_SPI), yes) > # This is a totally ugly hack. > FEATURE_CFLAGS += $(shell LC_ALL=C grep -q "FTDISUPPORT := yes" .features && printf "%s" "-D'CONFIG_FT2232_SPI=1'") >-NEED_FTDI := yes >+NEED_FTDI1 := yes > PROGRAMMER_OBJS += ft2232_spi.o > endif > > ifeq ($(CONFIG_USBBLASTER_SPI), yes) > # This is a totally ugly hack. > FEATURE_CFLAGS += $(shell LC_ALL=C grep -q "FTDISUPPORT := yes" .features && printf "%s" "-D'CONFIG_USBBLASTER_SPI=1'") >-NEED_FTDI := yes >+NEED_LIBUSB1 := yes >+NEED_FTDI1 := yes > PROGRAMMER_OBJS += usbblaster_spi.o > endif > >-ifeq ($(NEED_FTDI), yes) >-FTDILIBS := $(shell pkg-config --libs libftdi 2>/dev/null || printf "%s" "-lftdi -lusb") >+ifeq ($(NEED_FTDI1), yes) >+FTDILIBS := $(shell pkg-config --libs libftdi1 2>/dev/null || printf "%s" "-lftdi1 -lusb-1.0") >+FEATURE_CFLAGS += $(shell pkg-config --cflags libftdi1 2>/dev/null) > FEATURE_CFLAGS += $(shell LC_ALL=C grep -q "FT232H := yes" .features && printf "%s" "-D'HAVE_FT232H=1'") > FEATURE_LIBS += $(shell LC_ALL=C grep -q "FTDISUPPORT := yes" .features && printf "%s" "$(FTDILIBS)") > # We can't set NEED_USB here because that would transform libftdi auto-enabling >@@ -781,6 +783,7 @@ > endif > > define FTDI_TEST >+#include <stddef.h> > #include <ftdi.h> > struct ftdi_context *ftdic = NULL; > int main(int argc, char **argv) >@@ -793,6 +796,7 @@ > export FTDI_TEST > > define FTDI_232H_TEST >+#include <stddef.h> > #include <ftdi.h> > enum ftdi_chip_type type = TYPE_232H; > endef >@@ -826,15 +830,15 @@ > > features: compiler > @echo "FEATURES := yes" > .features.tmp >-ifeq ($(NEED_FTDI), yes) >+ifeq ($(NEED_FTDI1), yes) > @printf "Checking for FTDI support... " > @echo "$$FTDI_TEST" > .featuretest.c >- @$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) .featuretest.c -o .featuretest$(EXEC_SUFFIX) $(FTDILIBS) $(LIBS) >/dev/null 2>&1 && \ >+ @$(CC) $(CPPFLAGS) $(CFLAGS) $(FEATURE_CFLAGS) $(LDFLAGS) .featuretest.c -o .featuretest$(EXEC_SUFFIX) $(FTDILIBS) $(LIBS) >/dev/null 2>&1 && \ > ( echo "found."; echo "FTDISUPPORT := yes" >> .features.tmp ) || \ > ( echo "not found."; echo "FTDISUPPORT := no" >> .features.tmp ) > @printf "Checking for FT232H support in libftdi... " > @echo "$$FTDI_232H_TEST" >> .featuretest.c >- @$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) .featuretest.c -o .featuretest$(EXEC_SUFFIX) $(FTDILIBS) $(LIBS) >/dev/null 2>&1 && \ >+ @$(CC) $(CPPFLAGS) $(CFLAGS) $(FEATURE_CFLAGS) $(LDFLAGS) .featuretest.c -o .featuretest$(EXEC_SUFFIX) $(FTDILIBS) $(LIBS) >/dev/null 2>&1 && \ > ( echo "found."; echo "FT232H := yes" >> .features.tmp ) || \ > ( echo "not found."; echo "FT232H := no" >> .features.tmp ) > endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 546276
: 401056