|
@@ -159,25 +159,33 @@ LED_START_FLASHES_CMD = -DLED_START_FLASHES=3
|
|
endif
|
|
endif
|
|
|
|
|
|
ifdef LED_START_ON
|
|
ifdef LED_START_ON
|
|
|
|
+ifneq ($(LED_START_ON), 0)
|
|
LED_START_ON_CMD = -DLED_START_ON=1
|
|
LED_START_ON_CMD = -DLED_START_ON=1
|
|
|
|
+endif
|
|
dummy = FORCE
|
|
dummy = FORCE
|
|
endif
|
|
endif
|
|
|
|
|
|
# BIG_BOOT: Include extra features, up to 1K.
|
|
# BIG_BOOT: Include extra features, up to 1K.
|
|
ifdef BIGBOOT
|
|
ifdef BIGBOOT
|
|
|
|
+ifneq ($(BIGBOOT), 0)
|
|
BIGBOOT_CMD = -DBIGBOOT=1
|
|
BIGBOOT_CMD = -DBIGBOOT=1
|
|
dummy = FORCE
|
|
dummy = FORCE
|
|
endif
|
|
endif
|
|
|
|
+endif
|
|
|
|
|
|
ifdef SOFT_UART
|
|
ifdef SOFT_UART
|
|
|
|
+ifneq ($(SOFT_UART), 0)
|
|
SOFT_UART_CMD = -DSOFT_UART=1
|
|
SOFT_UART_CMD = -DSOFT_UART=1
|
|
dummy = FORCE
|
|
dummy = FORCE
|
|
endif
|
|
endif
|
|
|
|
+endif
|
|
|
|
|
|
ifdef LED_DATA_FLASH
|
|
ifdef LED_DATA_FLASH
|
|
|
|
+ifneq ($(LED_DATA_FLASH), 0)
|
|
LED_DATA_FLASH_CMD = -DLED_DATA_FLASH=1
|
|
LED_DATA_FLASH_CMD = -DLED_DATA_FLASH=1
|
|
dummy = FORCE
|
|
dummy = FORCE
|
|
endif
|
|
endif
|
|
|
|
+endif
|
|
|
|
|
|
ifdef LED
|
|
ifdef LED
|
|
LED_CMD = -DLED=$(LED)
|
|
LED_CMD = -DLED=$(LED)
|
|
@@ -185,8 +193,10 @@ dummy = FORCE
|
|
endif
|
|
endif
|
|
|
|
|
|
ifdef SINGLESPEED
|
|
ifdef SINGLESPEED
|
|
|
|
+ifneq ($(SINGLESPEED), 0)
|
|
SS_CMD = -DSINGLESPEED=1
|
|
SS_CMD = -DSINGLESPEED=1
|
|
endif
|
|
endif
|
|
|
|
+endif
|
|
|
|
|
|
COMMON_OPTIONS = $(BAUD_RATE_CMD) $(LED_START_FLASHES_CMD) $(BIGBOOT_CMD)
|
|
COMMON_OPTIONS = $(BAUD_RATE_CMD) $(LED_START_FLASHES_CMD) $(BIGBOOT_CMD)
|
|
COMMON_OPTIONS += $(SOFT_UART_CMD) $(LED_DATA_FLASH_CMD) $(LED_CMD) $(SS_CMD)
|
|
COMMON_OPTIONS += $(SOFT_UART_CMD) $(LED_DATA_FLASH_CMD) $(LED_CMD) $(SS_CMD)
|
|
@@ -197,11 +207,12 @@ ifdef UART
|
|
UART_CMD = -DUART=$(UART)
|
|
UART_CMD = -DUART=$(UART)
|
|
endif
|
|
endif
|
|
|
|
|
|
-# Not supported yet
|
|
|
|
ifdef SUPPORT_EEPROM
|
|
ifdef SUPPORT_EEPROM
|
|
|
|
+ifneq ($(SUPPORT_EEPROM), 0)
|
|
SUPPORT_EEPROM_CMD = -DSUPPORT_EEPROM
|
|
SUPPORT_EEPROM_CMD = -DSUPPORT_EEPROM
|
|
dummy = FORCE
|
|
dummy = FORCE
|
|
endif
|
|
endif
|
|
|
|
+endif
|
|
|
|
|
|
# Not supported yet
|
|
# Not supported yet
|
|
# ifdef TIMEOUT_MS
|
|
# ifdef TIMEOUT_MS
|