diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -313,6 +313,10 @@ CONFIG_OGP_SPI ?= yes # Always enable Bus Pirate SPI for now. CONFIG_BUSPIRATE_SPI ?= yes +# Disable Linux spidev interface support for now, until we check for a Linux +# device (not host, as DOS binaries for example are built on a Linux host). +CONFIG_LINUX_SPI ?= no + # Disable Dediprog SF100 until support is complete and tested. CONFIG_DEDIPROG ?= no @@ -449,6 +453,11 @@ PROGRAMMER_OBJS += buspirate_spi.o NEED_SERIAL := yes endif +ifeq ($(CONFIG_LINUX_SPI), yes) +FEATURE_CFLAGS += -D'CONFIG_LINUX_SPI=1' +PROGRAMMER_OBJS += linux_spi.o +endif + ifeq ($(CONFIG_DEDIPROG), yes) FEATURE_CFLAGS += -D'CONFIG_DEDIPROG=1' FEATURE_LIBS += -lusb |