gateware/icE1usb: Make single channel a build option
By default build full bitstream, but from env or cli, allow to only
enable RX/TX units in channel 0 to speedup dev / testing.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
diff --git a/gateware/icE1usb/Makefile b/gateware/icE1usb/Makefile
index dcafe27..2d70f72 100644
--- a/gateware/icE1usb/Makefile
+++ b/gateware/icE1usb/Makefile
@@ -43,6 +43,9 @@
ifeq ($(IGNORE_TIMING),1)
NEXTPNR_ARGS += --timing-allow-fail
endif
+ifeq ($(SINGLE_CHANNEL),1)
+ YOSYS_READ_ARGS += -DWITH_SINGLE_CHANNEL
+endif
# Include default rules
NO2BUILD_DIR ?= ../build