Thomas Heijligen has uploaded this change for review.

View Change

Makefile: build shared usb code only when needed by programmer

Change-Id: I9a91c5801a573e7021686a183a1bd874122e35cc
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
---
M Makefile
1 file changed, 2 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/32/62832/1
diff --git a/Makefile b/Makefile
index f5ed409..fc7c403 100644
--- a/Makefile
+++ b/Makefile
@@ -605,7 +605,7 @@

ifeq ($(CONFIG_RAIDEN_DEBUG_SPI), yes)
FEATURE_FLAGS += -D'CONFIG_RAIDEN_DEBUG_SPI=1'
-PROGRAMMER_OBJS += raiden_debug_spi.o
+PROGRAMMER_OBJS += raiden_debug_spi.o usb_device.o
endif

ifeq ($(CONFIG_PONY_SPI), yes)
@@ -740,7 +740,7 @@

ifeq ($(CONFIG_DEVELOPERBOX_SPI), yes)
FEATURE_FLAGS += -D'CONFIG_DEVELOPERBOX_SPI=1'
-PROGRAMMER_OBJS += developerbox_spi.o
+PROGRAMMER_OBJS += developerbox_spi.o usbdev.o
endif

ifeq ($(CONFIG_SATAMV), yes)
@@ -845,7 +845,6 @@
ifeq ($(USE_LIBUSB1), yes)
override CFLAGS += $(CONFIG_LIBUSB1_CFLAGS)
override LDFLAGS += $(CONFIG_LIBUSB1_LDFLAGS)
-PROGRAMMER_OBJS +=usbdev.o usb_device.o
endif

USE_LIBFTDI1 := $(if $(call filter_deps,$(DEPENDS_ON_LIBFTDI1)),yes,no)

To view, visit change 62832. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I9a91c5801a573e7021686a183a1bd874122e35cc
Gerrit-Change-Number: 62832
Gerrit-PatchSet: 1
Gerrit-Owner: Thomas Heijligen <src@posteo.de>
Gerrit-MessageType: newchange