Merge pull request #85 from simonduq/pr/project-conf

Auto-include project-conf
This commit is contained in:
Simon Duquennoy 2017-10-07 18:35:38 +02:00 committed by GitHub
commit aaef87dc85
58 changed files with 36 additions and 95 deletions

View File

@ -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

View File

@ -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

View File

@ -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_ */

View File

@ -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_ */

View File

@ -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_ */

View File

@ -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"

View File

@ -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

View File

@ -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 */

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,3 @@
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
CONTIKI = ../..
MODULES += os/services/unit-test

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,3 @@
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
CONTIKI_PROJECT = root intermediate sink
all: $(CONTIKI_PROJECT)

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,6 +1,5 @@
CONTIKI_PROJECT = logging
all: $(CONTIKI_PROJECT)
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
CONTIKI = ../..
include $(CONTIKI)/Makefile.include

View File

@ -1,5 +1,3 @@
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
all: mqtt-demo

View File

@ -1,4 +1,3 @@
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
CONTIKI_PROJECT = cc26xx-demo
all: $(CONTIKI_PROJECT)

View File

@ -1,5 +1,3 @@
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
all: cc26xx-web-demo
REST_RESOURCES_DIR = ./resources

View File

@ -1,4 +1,3 @@
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
CONTIKI_PROJECT = very-sleepy-demo
all: $(CONTIKI_PROJECT)

View File

@ -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),)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -5,7 +5,6 @@ JN516x_WITH_DONGLE = 1
CONTIKI=../../../../../..
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
PROJECTDIRS += .. ../../tools
PROJECT_SOURCEFILES += rpl-tools.c

View File

@ -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

View File

@ -6,7 +6,6 @@ TARGET_WITH_UART1 = 1
CONTIKI=../../../../..
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
PROJECTDIRS += .. ../tools
PROJECT_SOURCEFILES += rpl-tools.c

View File

@ -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)

View File

@ -1,5 +1,3 @@
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
all: mqtt-demo
CONTIKI_WITH_RPL = 0

View File

@ -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

View File

@ -1,4 +1,3 @@
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
CONTIKI_PROJECT = at-master-test
MODULES = os/services/at-master
all: $(CONTIKI_PROJECT)

View File

@ -1,4 +1,3 @@
CFLAGS+=-DPROJECT_CONF_H=\"project-conf.h\"
CONTIKI_PROJECT = client ifttt_client
all: $(CONTIKI_PROJECT)

View File

@ -1,5 +1,3 @@
DEFINES += PROJECT_CONF_H=\"project-conf.h\"
all: ip64-router
BOARD = orion

View File

@ -1,5 +1,3 @@
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
CONTIKI_PROJECT = test-power-mgmt
BOARD ?= remote-revb

View File

@ -1,4 +1,3 @@
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
CONTIKI_PROJECT = test-rtcc
TARGET = zoul

View File

@ -1,5 +1,3 @@
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
CONTIKI_PROJECT = sensniff
PROJECT_SOURCEFILES += sensniff-mac.c netstack.c

View File

@ -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>

View File

@ -1,6 +1,5 @@
all: test-ringbufindex
CFLAGS += -D PROJECT_CONF_H=\"project-conf.h\"
MODULES += os/services/unit-test
CONTIKI = ../../..

View File

@ -1,5 +1,3 @@
CONTIKI=../../../..
CFLAGS+= -DPROJECT_CONF_H=\"project-conf.h\"
include $(CONTIKI)/Makefile.include

View File

@ -1,5 +1,3 @@
CONTIKI=../../../..
CFLAGS+= -DPROJECT_CONF_H=\"project-conf.h\"
include $(CONTIKI)/Makefile.include

View File

@ -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

View File

@ -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

View File

@ -1,6 +1,4 @@
all: sender-node receiver-node root-node
CONTIKI=../../..
CFLAGS+=-DPROJECT_CONF_H=\"project-conf.h\"
include $(CONTIKI)/Makefile.include

View File

@ -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

View File

@ -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

View File

@ -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