Rename PROJECT_CONF_H to PROJECT_CONF_PATH for clarity and so as to avoid possible conflicts with guards in project-conf.h files
This commit is contained in:
parent
20559fd308
commit
a92319bbca
@ -76,7 +76,7 @@ MODULES += os os/sys os/dev os/lib os/services
|
|||||||
|
|
||||||
# Automatically include project-conf.h if found
|
# Automatically include project-conf.h if found
|
||||||
ifneq ("$(wildcard project-conf.h)","")
|
ifneq ("$(wildcard project-conf.h)","")
|
||||||
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
CFLAGS += -DPROJECT_CONF_PATH=\"project-conf.h\"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Configure MAC layer
|
# Configure MAC layer
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* Include Project Specific conf */
|
/* Include Project Specific conf */
|
||||||
#ifdef PROJECT_CONF_H
|
#ifdef PROJECT_CONF_PATH
|
||||||
#include PROJECT_CONF_H
|
#include PROJECT_CONF_PATH
|
||||||
#endif /* PROJECT_CONF_H */
|
#endif /* PROJECT_CONF_PATH */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/**
|
/**
|
||||||
* \name Compiler configuration and platform-specific type definitions
|
* \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
|
#define NETSTACK_RADIO_MAX_PAYLOAD_LEN 125
|
||||||
|
|
||||||
/* include the project config */
|
/* include the project config */
|
||||||
/* PROJECT_CONF_H might be defined in the project Makefile */
|
#ifdef PROJECT_CONF_PATH
|
||||||
#ifdef PROJECT_CONF_H
|
#include PROJECT_CONF_PATH
|
||||||
#include PROJECT_CONF_H
|
#endif /* PROJECT_CONF_PATH */
|
||||||
#endif /* PROJECT_CONF_H */
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* CONTIKI_CONF_H_ */
|
#endif /* CONTIKI_CONF_H_ */
|
||||||
|
@ -50,9 +50,8 @@
|
|||||||
#endif /* CCM_STAR_CONF */
|
#endif /* CCM_STAR_CONF */
|
||||||
|
|
||||||
/* include the project config */
|
/* include the project config */
|
||||||
/* PROJECT_CONF_H might be defined in the project Makefile */
|
#ifdef PROJECT_CONF_PATH
|
||||||
#ifdef PROJECT_CONF_H
|
#include PROJECT_CONF_PATH
|
||||||
#include PROJECT_CONF_H
|
#endif /* PROJECT_CONF_PATH */
|
||||||
#endif /* PROJECT_CONF_H */
|
|
||||||
|
|
||||||
#endif /* CONTIKI_CONF_H_ */
|
#endif /* CONTIKI_CONF_H_ */
|
||||||
|
@ -91,9 +91,8 @@ typedef unsigned long clock_time_t;
|
|||||||
int strcasecmp(const char*, const char*);
|
int strcasecmp(const char*, const char*);
|
||||||
|
|
||||||
/* include the project config */
|
/* include the project config */
|
||||||
/* PROJECT_CONF_H might be defined in the project Makefile */
|
#ifdef PROJECT_CONF_PATH
|
||||||
#ifdef PROJECT_CONF_H
|
#include PROJECT_CONF_PATH
|
||||||
#include PROJECT_CONF_H
|
#endif /* PROJECT_CONF_PATH */
|
||||||
#endif /* PROJECT_CONF_H */
|
|
||||||
|
|
||||||
#endif /* CONTIKI_CONF_H_ */
|
#endif /* CONTIKI_CONF_H_ */
|
||||||
|
@ -43,9 +43,9 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* Include Project Specific conf */
|
/* Include Project Specific conf */
|
||||||
#ifdef PROJECT_CONF_H
|
#ifdef PROJECT_CONF_PATH
|
||||||
#include PROJECT_CONF_H
|
#include PROJECT_CONF_PATH
|
||||||
#endif /* PROJECT_CONF_H */
|
#endif /* PROJECT_CONF_PATH */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* Include platform peripherals configuration */
|
/* Include platform peripherals configuration */
|
||||||
#include "platform-conf.h"
|
#include "platform-conf.h"
|
||||||
|
@ -51,9 +51,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* Include Project Specific conf */
|
/* Include Project Specific conf */
|
||||||
#ifdef PROJECT_CONF_H
|
#ifdef PROJECT_CONF_PATH
|
||||||
#include PROJECT_CONF_H
|
#include PROJECT_CONF_PATH
|
||||||
#endif /* PROJECT_CONF_H */
|
#endif /* PROJECT_CONF_PATH */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/**
|
/**
|
||||||
* \name Compiler configuration and platform-specific type definitions
|
* \name Compiler configuration and platform-specific type definitions
|
||||||
|
@ -34,9 +34,8 @@
|
|||||||
#endif /* AES_128_CONF */
|
#endif /* AES_128_CONF */
|
||||||
|
|
||||||
/* include the project config */
|
/* include the project config */
|
||||||
/* PROJECT_CONF_H might be defined in the project Makefile */
|
#ifdef PROJECT_CONF_PATH
|
||||||
#ifdef PROJECT_CONF_H
|
#include PROJECT_CONF_PATH
|
||||||
#include PROJECT_CONF_H
|
#endif /* PROJECT_CONF_PATH */
|
||||||
#endif /* PROJECT_CONF_H */
|
|
||||||
|
|
||||||
#endif /* CONTIKI_CONF_H */
|
#endif /* CONTIKI_CONF_H */
|
||||||
|
@ -40,9 +40,9 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* Include Project Specific conf */
|
/* Include Project Specific conf */
|
||||||
#ifdef PROJECT_CONF_H
|
#ifdef PROJECT_CONF_PATH
|
||||||
#include PROJECT_CONF_H
|
#include PROJECT_CONF_PATH
|
||||||
#endif /* PROJECT_CONF_H */
|
#endif /* PROJECT_CONF_PATH */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/**
|
/**
|
||||||
* \name Network Stack Configuration
|
* \name Network Stack Configuration
|
||||||
|
@ -49,9 +49,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* Include Project Specific conf */
|
/* Include Project Specific conf */
|
||||||
#ifdef PROJECT_CONF_H
|
#ifdef PROJECT_CONF_PATH
|
||||||
#include PROJECT_CONF_H
|
#include PROJECT_CONF_PATH
|
||||||
#endif /* PROJECT_CONF_H */
|
#endif /* PROJECT_CONF_PATH */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/**
|
/**
|
||||||
* \name Compiler configuration and platform-specific type definitions
|
* \name Compiler configuration and platform-specific type definitions
|
||||||
|
@ -48,9 +48,9 @@
|
|||||||
#define PRINTF(...)
|
#define PRINTF(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PROJECT_CONF_H
|
#ifdef PROJECT_CONF_PATH
|
||||||
/* Load the heapmem configuration from a project configuration file. */
|
/* Load the heapmem configuration from a project configuration file. */
|
||||||
#include PROJECT_CONF_H
|
#include PROJECT_CONF_PATH
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user