mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-20 10:35:34 +00:00
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.
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
CONTIKI_TARGET_DIRS = . dev dev/sensors
|
|
CONTIKI_CORE=contiki-iris
|
|
CONTIKI_TARGET_MAIN = ${CONTIKI_CORE}.o
|
|
|
|
SENSOR_BOARD_SOURCEFILES = mts300.c
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += adc.c rs232.c cfs-eeprom.c contiki-iris-main.c \
|
|
leds-arch.c init-net.c node-id.c \
|
|
clock.c spi.c rtimer-arch.c ds2401.c \
|
|
battery-sensor.c slip.c slip_uart0.c
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += $(SENSOR_BOARD_SOURCEFILES)
|
|
|
|
CONTIKIAVR=$(CONTIKI)/cpu/avr
|
|
CONTIKIBOARD=.
|
|
|
|
# IRIS runs on Clock rate 8 MHz
|
|
CONTIKI_PLAT_DEFS = -DF_CPU=8000000UL -DAUTO_CRC_PADDING=2 #-DUSART_BAUD_115200
|
|
|
|
MCU=atmega1281
|
|
AVRDUDE_OPTIONS=-V
|
|
AVRDUDE_PROGRAMMER=mib510
|
|
#AVRDUDE_PROGRAMMER=jtag2
|
|
#AVRDUDE_PORT=usb
|
|
AVRDUDE_PORT=$(PORT)
|
|
|
|
include $(CONTIKIAVR)/Makefile.avr
|
|
|
|
|
|
%.od: %.$(TARGET)
|
|
avr-objdump -zhD $< > $@
|
|
|
|
|
|
ifeq ($(PRGBOARD), )
|
|
PRGBOARD = mib510
|
|
endif
|
|
|
|
ifeq ($(PORT), )
|
|
ifeq ($(HOST_OS), Windows)
|
|
PORT = COM1
|
|
else
|
|
PORT = /dev/ttyUSB0
|
|
endif
|
|
endif
|
|
|
|
PRGBOARD_FILE = $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.$(PRGBOARD)
|
|
HAVE_PRGBOARD_FILE = $(wildcard $(PRGBOARD_FILE))
|
|
|
|
ifneq ($(strip $(HAVE_PRGBOARD_FILE)), )
|
|
include $(PRGBOARD_FILE)
|
|
endif
|
|
|
|
include $(CONTIKIAVR)/radio/Makefile.radio
|
|
ifeq ($(UIP_CONF_IPV6),1)
|
|
CFLAGS += -DWITH_UIP6=1
|
|
endif
|
|
|