5afcbf6fff
Setting UIP_CONF_IPV6 to zero from the make build command line is something that seems like it should ensure that IPv6 is disabled, but in fact it actually *enables* IPv6. This seems counter intuitive, so this patch changes the behavior of the makefiles to handle this case properly.
24 lines
550 B
Text
24 lines
550 B
Text
|
|
|
|
ARCH= irq.c sensors.c acc-sensor.c button-sensor.c temperature-sensor.c mems.c
|
|
|
|
CONTIKI_TARGET_DIRS = . dev
|
|
ifndef CONTIKI_TARGET_MAIN
|
|
CONTIKI_TARGET_MAIN = contiki-main.c led.c button.c board.c board-mbxxx.c
|
|
endif
|
|
|
|
ifeq ($(UIP_CONF_IPV6),1)
|
|
CFLAGS += -DWITH_UIP6=1
|
|
endif
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += $(ARCH) $(CONTIKI_TARGET_MAIN)
|
|
|
|
MCU=STM32W108
|
|
include $(CONTIKI)/cpu/stm32w108/Makefile.stm32w108
|
|
|
|
SERIALDUMP = $(CONTIKI)/tools/stm32w/serialdump-linux
|
|
|
|
ifeq ($(HOST_OS),Windows)
|
|
SERIALDUMP = $(CONTIKI)/tools/stm32w/serialdump-windows
|
|
endif
|
|
|