Skip to content
Snippets Groups Projects
Commit a06cf93e authored by Adam Dunkels's avatar Adam Dunkels
Browse files

Made the sky and z1 platform handling of PROJECT_CONF_H the same as the other...

Made the sky and z1 platform handling of PROJECT_CONF_H the same as the other platforms: the makefile should define PROJECT_CONF_H to be the name of the header file to include. This header file should #undef everything it #defines, as it is included after all the other configuration options in contiki-conf.h
parent 3b33c198
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ CFLAGS+= -DUIP_CONF_IPV6_RPL ...@@ -8,7 +8,7 @@ CFLAGS+= -DUIP_CONF_IPV6_RPL
APPS += webserver webbrowser APPS += webserver webbrowser
CFLAGS += -DPROJECT_CONF_H=1 CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
CONTIKI_SOURCEFILES += wget.c CONTIKI_SOURCEFILES += wget.c
PROJECTDIRS += ../rpl-border-router PROJECTDIRS += ../rpl-border-router
PROJECT_SOURCEFILES += httpd-simple.c PROJECT_SOURCEFILES += httpd-simple.c
......
...@@ -7,7 +7,7 @@ UIP_CONF_IPV6=1 ...@@ -7,7 +7,7 @@ UIP_CONF_IPV6=1
APPS += webserver webbrowser APPS += webserver webbrowser
CFLAGS += -DPROJECT_CONF_H=1 CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
CONTIKI_SOURCEFILES += wget.c CONTIKI_SOURCEFILES += wget.c
PROJECTDIRS += ../../../ipv6/rpl-border-router PROJECTDIRS += ../../../ipv6/rpl-border-router
PROJECT_SOURCEFILES += httpd-simple.c PROJECT_SOURCEFILES += httpd-simple.c
......
...@@ -4,10 +4,6 @@ ...@@ -4,10 +4,6 @@
#ifndef CONTIKI_CONF_H #ifndef CONTIKI_CONF_H
#define CONTIKI_CONF_H #define CONTIKI_CONF_H
#ifdef PROJECT_CONF_H
#include "project-conf.h"
#endif /* PROJECT_CONF_H */
#ifdef PLATFORM_CONF_H #ifdef PLATFORM_CONF_H
#include PLATFORM_CONF_H #include PLATFORM_CONF_H
#else #else
...@@ -210,5 +206,11 @@ ...@@ -210,5 +206,11 @@
/* 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 */
#endif /* CONTIKI_CONF_H */ #endif /* CONTIKI_CONF_H */
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
#ifdef PROJECT_CONF_H #ifdef PROJECT_CONF_H
#include "project-conf.h" #include PROJECT_CONF_H
#endif /* PROJECT_CONF_H */ #endif /* PROJECT_CONF_H */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment