Merge pull request #85 from simonduq/pr/project-conf
Auto-include project-conf
This commit is contained in:
commit
aaef87dc85
@ -74,6 +74,11 @@ endif
|
||||
|
||||
MODULES += os os/sys os/dev os/lib os/services
|
||||
|
||||
# Automatically include project-conf.h if found
|
||||
ifneq ("$(wildcard project-conf.h)","")
|
||||
CFLAGS += -DPROJECT_CONF_PATH=\"project-conf.h\"
|
||||
endif
|
||||
|
||||
# Configure MAC layer
|
||||
|
||||
# The different options
|
||||
|
@ -12,9 +12,9 @@
|
||||
#include <string.h>
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Include Project Specific conf */
|
||||
#ifdef PROJECT_CONF_H
|
||||
#include PROJECT_CONF_H
|
||||
#endif /* PROJECT_CONF_H */
|
||||
#ifdef PROJECT_CONF_PATH
|
||||
#include PROJECT_CONF_PATH
|
||||
#endif /* PROJECT_CONF_PATH */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/**
|
||||
* \name Compiler configuration and platform-specific type definitions
|
||||
|
@ -138,10 +138,9 @@ typedef uint64_t rtimer_clock_t;
|
||||
#define NETSTACK_RADIO_MAX_PAYLOAD_LEN 125
|
||||
|
||||
/* include the project config */
|
||||
/* PROJECT_CONF_H might be defined in the project Makefile */
|
||||
#ifdef PROJECT_CONF_H
|
||||
#include PROJECT_CONF_H
|
||||
#endif /* PROJECT_CONF_H */
|
||||
#ifdef PROJECT_CONF_PATH
|
||||
#include PROJECT_CONF_PATH
|
||||
#endif /* PROJECT_CONF_PATH */
|
||||
|
||||
|
||||
#endif /* CONTIKI_CONF_H_ */
|
||||
|
@ -50,9 +50,8 @@
|
||||
#endif /* CCM_STAR_CONF */
|
||||
|
||||
/* include the project config */
|
||||
/* PROJECT_CONF_H might be defined in the project Makefile */
|
||||
#ifdef PROJECT_CONF_H
|
||||
#include PROJECT_CONF_H
|
||||
#endif /* PROJECT_CONF_H */
|
||||
#ifdef PROJECT_CONF_PATH
|
||||
#include PROJECT_CONF_PATH
|
||||
#endif /* PROJECT_CONF_PATH */
|
||||
|
||||
#endif /* CONTIKI_CONF_H_ */
|
||||
|
@ -91,9 +91,8 @@ typedef unsigned long clock_time_t;
|
||||
int strcasecmp(const char*, const char*);
|
||||
|
||||
/* include the project config */
|
||||
/* PROJECT_CONF_H might be defined in the project Makefile */
|
||||
#ifdef PROJECT_CONF_H
|
||||
#include PROJECT_CONF_H
|
||||
#endif /* PROJECT_CONF_H */
|
||||
#ifdef PROJECT_CONF_PATH
|
||||
#include PROJECT_CONF_PATH
|
||||
#endif /* PROJECT_CONF_PATH */
|
||||
|
||||
#endif /* CONTIKI_CONF_H_ */
|
||||
|
@ -43,9 +43,9 @@
|
||||
#include <stdint.h>
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Include Project Specific conf */
|
||||
#ifdef PROJECT_CONF_H
|
||||
#include PROJECT_CONF_H
|
||||
#endif /* PROJECT_CONF_H */
|
||||
#ifdef PROJECT_CONF_PATH
|
||||
#include PROJECT_CONF_PATH
|
||||
#endif /* PROJECT_CONF_PATH */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Include platform peripherals configuration */
|
||||
#include "platform-conf.h"
|
||||
|
@ -51,9 +51,9 @@
|
||||
#include <string.h>
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Include Project Specific conf */
|
||||
#ifdef PROJECT_CONF_H
|
||||
#include PROJECT_CONF_H
|
||||
#endif /* PROJECT_CONF_H */
|
||||
#ifdef PROJECT_CONF_PATH
|
||||
#include PROJECT_CONF_PATH
|
||||
#endif /* PROJECT_CONF_PATH */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/**
|
||||
* \name Compiler configuration and platform-specific type definitions
|
||||
|
@ -34,9 +34,8 @@
|
||||
#endif /* AES_128_CONF */
|
||||
|
||||
/* include the project config */
|
||||
/* PROJECT_CONF_H might be defined in the project Makefile */
|
||||
#ifdef PROJECT_CONF_H
|
||||
#include PROJECT_CONF_H
|
||||
#endif /* PROJECT_CONF_H */
|
||||
#ifdef PROJECT_CONF_PATH
|
||||
#include PROJECT_CONF_PATH
|
||||
#endif /* PROJECT_CONF_PATH */
|
||||
|
||||
#endif /* CONTIKI_CONF_H */
|
||||
|
@ -40,9 +40,9 @@
|
||||
#include <stdint.h>
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Include Project Specific conf */
|
||||
#ifdef PROJECT_CONF_H
|
||||
#include PROJECT_CONF_H
|
||||
#endif /* PROJECT_CONF_H */
|
||||
#ifdef PROJECT_CONF_PATH
|
||||
#include PROJECT_CONF_PATH
|
||||
#endif /* PROJECT_CONF_PATH */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/**
|
||||
* \name Network Stack Configuration
|
||||
|
@ -49,9 +49,9 @@
|
||||
#include <string.h>
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Include Project Specific conf */
|
||||
#ifdef PROJECT_CONF_H
|
||||
#include PROJECT_CONF_H
|
||||
#endif /* PROJECT_CONF_H */
|
||||
#ifdef PROJECT_CONF_PATH
|
||||
#include PROJECT_CONF_PATH
|
||||
#endif /* PROJECT_CONF_PATH */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/**
|
||||
* \name Compiler configuration and platform-specific type definitions
|
||||
|
@ -2,7 +2,6 @@ CONTIKI_PROJECT = sixp-node.c
|
||||
PROJECT_SOURCEFILES += test-sf.c
|
||||
|
||||
CONTIKI = ../../../
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/net/mac/tsch/sixtop
|
||||
|
@ -9,7 +9,7 @@ endif
|
||||
MODULES += os/services/shell
|
||||
MODULES += os/net/mac/tsch os/net/mac/tsch/sixtop
|
||||
PROJECT_SOURCEFILES += sf-plugtest.c
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\" -Wno-nonnull-compare
|
||||
CFLAGS += -Wno-nonnull-compare
|
||||
|
||||
ifeq ($(BOARD),launchpad/cc2650)
|
||||
# Enable DAP and TAP by default for ETSI Plugtest
|
||||
|
@ -1,4 +1,3 @@
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
CONTIKI = ../..
|
||||
|
||||
MODULES += os/services/unit-test
|
||||
|
@ -4,8 +4,6 @@ CONTIKI_SOURCEFILES += serial-protocol.c example-ipso-temperature.c
|
||||
|
||||
all: $(CONTIKI_PROJECT)
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
MODULES += os/net/app-layer/coap
|
||||
MODULES += os/services/lwm2m
|
||||
MODULES += os/services/ipso-objects
|
||||
|
@ -3,8 +3,6 @@ all: coap-example-server coap-example-client
|
||||
|
||||
CONTIKI=../../..
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
# automatically build RESTful resources
|
||||
REST_RESOURCES_DIR = ./resources
|
||||
ifndef TARGET
|
||||
|
@ -13,8 +13,6 @@ endif
|
||||
|
||||
MODULES += os/lib/json os/net/app-layer/httpd-ws
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
ifeq ($(TARGET),)
|
||||
-include Makefile.target
|
||||
endif
|
||||
|
@ -1,5 +1,3 @@
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
CONTIKI_PROJECT = root intermediate sink
|
||||
all: $(CONTIKI_PROJECT)
|
||||
|
||||
|
@ -4,7 +4,6 @@ MODULES += os/services/slip-cmd
|
||||
|
||||
CONTIKI=../../..
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
PROJECT_SOURCEFILES += border-router-cmds.c tun-bridge.c border-router-mac.c \
|
||||
slip-config.c slip-dev.c
|
||||
|
||||
|
@ -3,7 +3,6 @@ all: $(CONTIKI_PROJECT)
|
||||
|
||||
CONTIKI=../../..
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
PROJECT_SOURCEFILES += slip-bridge.c
|
||||
|
||||
#Simple built-in webserver is the default.
|
||||
|
@ -1,8 +1,6 @@
|
||||
all: node
|
||||
CONTIKI=../../..
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
# Set MAKE_MAC = MAKE_MAC_TSCH to run TSCH instead
|
||||
MAKE_MAC = MAKE_MAC_CSMA
|
||||
|
||||
|
@ -3,7 +3,6 @@ all: $(CONTIKI_PROJECT)
|
||||
|
||||
PROJECT_SOURCEFILES += sf-simple.c
|
||||
CONTIKI=../../..
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
MAKE_WITH_SECURITY ?= 0 # force Security from command line
|
||||
|
||||
|
@ -2,7 +2,6 @@ CONTIKI_PROJECT = node
|
||||
all: $(CONTIKI_PROJECT)
|
||||
|
||||
CONTIKI=../../..
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
MAKE_WITH_ORCHESTRA ?= 0 # force Orchestra from command line
|
||||
MAKE_WITH_SECURITY ?= 0 # force Security from command line
|
||||
|
@ -8,7 +8,6 @@ endif
|
||||
|
||||
CONTIKI=../../..
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
PROJECT_SOURCEFILES += slip-net.c
|
||||
ifeq ($(TARGET),sky)
|
||||
PROJECT_SOURCEFILES += slip-radio-cc2420.c slip-radio-sky-sensors.c
|
||||
|
@ -1,6 +1,5 @@
|
||||
CONTIKI_PROJECT = logging
|
||||
all: $(CONTIKI_PROJECT)
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
CONTIKI = ../..
|
||||
include $(CONTIKI)/Makefile.include
|
||||
|
@ -1,5 +1,3 @@
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
all: mqtt-demo
|
||||
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
CONTIKI_PROJECT = cc26xx-demo
|
||||
|
||||
all: $(CONTIKI_PROJECT)
|
||||
|
@ -1,5 +1,3 @@
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
all: cc26xx-web-demo
|
||||
|
||||
REST_RESOURCES_DIR = ./resources
|
||||
|
@ -1,4 +1,3 @@
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
CONTIKI_PROJECT = very-sleepy-demo
|
||||
|
||||
all: $(CONTIKI_PROJECT)
|
||||
|
@ -8,7 +8,6 @@ CONTIKI=../../../../..
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
PROJECTDIRS += .. ../tools
|
||||
PROJECT_SOURCEFILES += rpl-tools.c
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
PROJECT_SOURCEFILES += slip-bridge.c slip.c
|
||||
|
||||
ifeq ($(PREFIX),)
|
||||
|
@ -10,7 +10,6 @@ MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/lib/json
|
||||
PROJECTDIRS += .. ../tools
|
||||
PROJECT_SOURCEFILES += rpl-tools.c
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
CFLAGS += -DWITH_COAP
|
||||
CFLAGS += -DUIP_CONF_TCP=0
|
||||
|
@ -10,7 +10,6 @@ MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/lib/json
|
||||
PROJECTDIRS += .. ../tools
|
||||
PROJECT_SOURCEFILES += rpl-tools.c
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
CFLAGS += -DWITH_COAP
|
||||
CFLAGS += -DUIP_CONF_TCP=0
|
||||
|
@ -10,7 +10,6 @@ MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/lib/json
|
||||
PROJECTDIRS += .. ../tools
|
||||
PROJECT_SOURCEFILES += rpl-tools.c
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
CFLAGS += -DWITH_COAP
|
||||
CFLAGS += -DUIP_CONF_TCP=0
|
||||
|
@ -8,6 +8,5 @@ CONTIKI=../../../../..
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
PROJECTDIRS += .. ../tools
|
||||
PROJECT_SOURCEFILES += rpl-tools.c
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
include $(CONTIKI)/Makefile.include
|
||||
|
@ -5,7 +5,6 @@ JN516x_WITH_DONGLE = 1
|
||||
|
||||
CONTIKI=../../../../../..
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
PROJECTDIRS += .. ../../tools
|
||||
PROJECT_SOURCEFILES += rpl-tools.c
|
||||
CFLAGS += -DWITH_COAP
|
||||
|
@ -4,7 +4,6 @@ TARGET ?= jn516x
|
||||
JN516x_WITH_DONGLE = 1
|
||||
CONTIKI=../../../../../..
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
PROJECT_SOURCEFILES += slip-bridge.c slip.c
|
||||
|
||||
PROJECTDIRS += .. ../../tools
|
||||
|
@ -5,7 +5,6 @@ JN516x_WITH_DONGLE = 1
|
||||
|
||||
CONTIKI=../../../../../..
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
PROJECTDIRS += .. ../../tools
|
||||
PROJECT_SOURCEFILES += rpl-tools.c
|
||||
|
||||
|
@ -5,7 +5,6 @@ JN516x_WITH_DONGLE = 1
|
||||
|
||||
CONTIKI=../../../../../..
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
PROJECT_SOURCEFILES += slip-bridge.c slip.c
|
||||
|
||||
PROJECTDIRS += .. ../../tools
|
||||
|
@ -6,7 +6,6 @@ TARGET_WITH_UART1 = 1
|
||||
|
||||
CONTIKI=../../../../..
|
||||
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
PROJECTDIRS += .. ../tools
|
||||
PROJECT_SOURCEFILES += rpl-tools.c
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
CONTIKI=../../../..
|
||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
ifeq ($(MAKECMDGOALS),)
|
||||
$(error Please specify whether coap-client or coap-server should be built)
|
||||
|
@ -1,5 +1,3 @@
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
all: mqtt-demo
|
||||
|
||||
CONTIKI_WITH_RPL = 0
|
||||
|
@ -1,5 +1,3 @@
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
CONTIKI_PROJECT = test-tsl256x test-sht25 test-servo.c
|
||||
CONTIKI_PROJECT += test-bmp085-bmp180 test-motion test-rotation-sensor
|
||||
CONTIKI_PROJECT += test-grove-light-sensor test-grove-loudness-sensor
|
||||
|
@ -1,4 +1,3 @@
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
CONTIKI_PROJECT = at-master-test
|
||||
MODULES = os/services/at-master
|
||||
all: $(CONTIKI_PROJECT)
|
||||
|
@ -1,4 +1,3 @@
|
||||
CFLAGS+=-DPROJECT_CONF_H=\"project-conf.h\"
|
||||
CONTIKI_PROJECT = client ifttt_client
|
||||
all: $(CONTIKI_PROJECT)
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
DEFINES += PROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
all: ip64-router
|
||||
|
||||
BOARD = orion
|
||||
|
@ -1,5 +1,3 @@
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
CONTIKI_PROJECT = test-power-mgmt
|
||||
|
||||
BOARD ?= remote-revb
|
||||
|
@ -1,4 +1,3 @@
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
CONTIKI_PROJECT = test-rtcc
|
||||
|
||||
TARGET = zoul
|
||||
|
@ -1,5 +1,3 @@
|
||||
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
CONTIKI_PROJECT = sensniff
|
||||
|
||||
PROJECT_SOURCEFILES += sensniff-mac.c netstack.c
|
||||
|
@ -48,9 +48,9 @@
|
||||
#define PRINTF(...)
|
||||
#endif
|
||||
|
||||
#ifdef PROJECT_CONF_H
|
||||
#ifdef PROJECT_CONF_PATH
|
||||
/* Load the heapmem configuration from a project configuration file. */
|
||||
#include "project-conf.h"
|
||||
#include PROJECT_CONF_PATH
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
@ -1,6 +1,5 @@
|
||||
all: test-ringbufindex
|
||||
|
||||
CFLAGS += -D PROJECT_CONF_H=\"project-conf.h\"
|
||||
MODULES += os/services/unit-test
|
||||
|
||||
CONTIKI = ../../..
|
||||
|
@ -1,5 +1,3 @@
|
||||
CONTIKI=../../../..
|
||||
|
||||
CFLAGS+= -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
include $(CONTIKI)/Makefile.include
|
||||
|
@ -1,5 +1,3 @@
|
||||
CONTIKI=../../../..
|
||||
|
||||
CFLAGS+= -DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
include $(CONTIKI)/Makefile.include
|
||||
|
@ -1,6 +1,5 @@
|
||||
all:
|
||||
|
||||
CFLAGS += -D PROJECT_CONF_H=\"project-conf.h\"
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/net/mac/tsch/sixtop os/services/unit-test
|
||||
|
||||
|
@ -2,7 +2,6 @@ all: test-panid-handling test-tcsh-create-packet
|
||||
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/services/unit-test
|
||||
CFLAGS += -D PROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
TEST_CONFIG_TYPE ?= DEFAULT
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
all: sender-node receiver-node root-node
|
||||
CONTIKI=../../..
|
||||
|
||||
CFLAGS+=-DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
include $(CONTIKI)/Makefile.include
|
||||
|
@ -1,7 +1,5 @@
|
||||
all: sender-node receiver-node root-node
|
||||
CONTIKI=../../..
|
||||
|
||||
CFLAGS+=-DPROJECT_CONF_H=\"project-conf.h\"
|
||||
|
||||
CONTIKI_WITH_RPL_LITE = 0
|
||||
include $(CONTIKI)/Makefile.include
|
||||
|
@ -1,6 +1,5 @@
|
||||
all:
|
||||
|
||||
CFLAGS += -D PROJECT_CONF_H=\"project-conf.h\"
|
||||
APPS += unit-test
|
||||
MODULES += os/net/mac/tsch os/net/mac/tsch/sixtop
|
||||
|
||||
|
@ -6,7 +6,7 @@ CONTIKI=../../..
|
||||
endif
|
||||
endif
|
||||
|
||||
DEFINES=WITH_SLIP=1,PROJECT_CONF_H=\"bridge-conf.h\"
|
||||
DEFINES=WITH_SLIP=1
|
||||
|
||||
ifndef TARGET
|
||||
TARGET=sky
|
||||
|
Loading…
Reference in New Issue
Block a user