flashrom-makefile-20170120-1139be7.diff 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. diff --git a/Makefile b/Makefile
  2. index a2f95cf..fcfce9b 100644
  3. --- a/Makefile
  4. +++ b/Makefile
  5. @@ -35,7 +35,7 @@ PKG_CONFIG ?= pkg-config
  6. WARNERROR ?= yes
  7. ifneq ($(NOWARNERROR),yes)
  8. -CFLAGS += -Werror
  9. +CFLAGS +=
  10. endif
  11. ifeq ($(CONFIG_STATIC),yes)
  12. @@ -354,7 +354,7 @@ CONFIG_BUSPIRATE_SPI ?= no
  13. CONFIG_RAIDEN_DEBUG_SPI ?= no
  14. # Enable Linux I2C for ChromeOS EC
  15. -CONFIG_LINUX_I2C ?= no
  16. +CONFIG_LINUX_I2C ?= yes
  17. CONFIG_LINUX_MTD ?= no
  18. @@ -401,6 +401,7 @@ PROGRAMMER_OBJS += ichspi.o ich_descriptors.o
  19. else
  20. ifeq ($(ARCH),arm)
  21. PROGRAMMER_OBJS += cros_ec_i2c.o
  22. +CONFIG_SATAMV := no
  23. endif
  24. NEED_PCI := yes
  25. endif
  26. @@ -453,7 +454,7 @@ endif
  27. ifeq ($(CONFIG_FT2232_SPI), yes)
  28. FTDILIBS := $(shell $(PKG_CONFIG) --libs libftdi1 2>/dev/null || \
  29. - $(PKG_CONFIG) --libs libftdi 2>/dev/null || echo "-lftdi -lusb")
  30. + $(PKG_CONFIG) --libs libftdi 2>/dev/null || echo "-lftdi -lusb-1.0")
  31. FTDICFLAGS := $(shell $(PKG_CONFIG) --cflags libftdi1 2>/dev/null || \
  32. $(PKG_CONFIG) --cflags libftdi 2>/dev/null)
  33. # This is a totally ugly hack.
  34. @@ -528,7 +529,7 @@ endif
  35. ifeq ($(CONFIG_DEDIPROG), yes)
  36. FEATURE_CFLAGS += -D'CONFIG_DEDIPROG=1'
  37. -FEATURE_LIBS += -lusb
  38. +FEATURE_LIBS += -lusb-1.0
  39. PROGRAMMER_OBJS += dediprog.o
  40. endif