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

This commit is contained in:
Adam Dunkels 2011-09-05 11:46:15 +02:00
parent 3b33c198ed
commit a06cf93e4c
4 changed files with 9 additions and 7 deletions

View file

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

View file

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

View file

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

View file

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