Skip to content

Commit

Permalink
[configure] replace --with-platform-info using project config (openth…
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhui authored Aug 9, 2017
1 parent 3584835 commit 5ecab16
Showing 24 changed files with 155 additions and 91 deletions.
18 changes: 0 additions & 18 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1236,24 +1236,6 @@ AM_CONDITIONAL([OPENTHREAD_EXAMPLES_KW41Z], [test "${OPENTHREAD_EXAMPLES}" = "kw
AC_SUBST(OPENTHREAD_EXAMPLES_NRF52840)
AM_CONDITIONAL([OPENTHREAD_EXAMPLES_NRF52840], [test "${OPENTHREAD_EXAMPLES}" = "nrf52840"])

#
# Platform Information
#

AC_ARG_WITH(platform-info,
[AS_HELP_STRING([--with-platform-info=PLATFORM],
[Specify the platform information @<:@default=none@:>@.])],
[],
[with_platform_info=none])

PLATFORM_INFO=${with_platform_info}

AC_MSG_CHECKING([with platform info])
AC_MSG_RESULT(${PLATFORM_INFO})

AC_SUBST(PLATFORM_INFO)
AC_DEFINE_UNQUOTED([PLATFORM_INFO],["${PLATFORM_INFO}"],[OpenThread platform information])

#
# Tools
#
1 change: 0 additions & 1 deletion examples/Makefile-cc2538
Original file line number Diff line number Diff line change
@@ -47,7 +47,6 @@ configure_OPTIONS = \
--with-ncp-bus=uart \
--enable-diag \
--with-examples=cc2538 \
--with-platform-info=CC2538 \
--enable-linker-map \
$(NULL)

1 change: 0 additions & 1 deletion examples/Makefile-cc2650
Original file line number Diff line number Diff line change
@@ -46,7 +46,6 @@ configure_OPTIONS = \
--enable-ncp-app=mtd \
--with-ncp-bus=uart \
--with-examples=cc2650 \
--with-platform-info=cc2650 \
--enable-linker-map \
MBEDTLS_CPPFLAGS="$(CC2650_MBEDTLS_CPPFLAGS)" \
$(NULL)
1 change: 0 additions & 1 deletion examples/Makefile-cc2652
Original file line number Diff line number Diff line change
@@ -47,7 +47,6 @@ configure_OPTIONS = \
--with-ncp-bus=uart \
--enable-diag \
--with-examples=cc2652 \
--with-platform-info=cc2652 \
MBEDTLS_CPPFLAGS="$(CC2652_MBEDTLS_CPPFLAGS)" \
$(NULL)

1 change: 0 additions & 1 deletion examples/Makefile-efr32
Original file line number Diff line number Diff line change
@@ -47,7 +47,6 @@ configure_OPTIONS = \
--with-ncp-bus=uart \
--enable-diag \
--with-examples=efr32 \
--with-platform-info=EFR32 \
--enable-linker-map \
MBEDTLS_CPPFLAGS="$(EFR32_MBEDTLS_CPPFLAGS)" \
$(NULL)
1 change: 0 additions & 1 deletion examples/Makefile-emsk
Original file line number Diff line number Diff line change
@@ -46,7 +46,6 @@ configure_OPTIONS = \
--enable-ncp-app=all \
--with-ncp-bus=uart \
--with-examples=emsk \
--with-platform-info=EMSK \
--enable-linker-map \
$(NULL)

2 changes: 0 additions & 2 deletions examples/Makefile-gp712
Original file line number Diff line number Diff line change
@@ -30,7 +30,6 @@

TARGET = arm-bcm2708hardfp-linux-gnueabi
PPREFIX = gp712
INFO = GP712
#CROSS_COMPILE = $(TARGET)-

AR = $(CROSS_COMPILE)ar
@@ -50,7 +49,6 @@ configure_OPTIONS = \
--enable-cli-app=ftd \
--enable-diag \
--with-examples=$(PPREFIX) \
--with-platform-info=$(INFO) \
$(NULL)

DEFAULT_LOGGING ?= 1
1 change: 0 additions & 1 deletion examples/Makefile-kw41z
Original file line number Diff line number Diff line change
@@ -47,7 +47,6 @@ configure_OPTIONS = \
--with-ncp-bus=uart \
--enable-diag \
--with-examples=kw41z \
--with-platform-info=KW41Z \
--enable-linker-map \
$(NULL)

1 change: 0 additions & 1 deletion examples/Makefile-nrf52840
Original file line number Diff line number Diff line change
@@ -47,7 +47,6 @@ configure_OPTIONS = \
--with-ncp-bus=uart \
--enable-diag \
--with-examples=nrf52840 \
--with-platform-info=NRF52840 \
--enable-linker-map \
MBEDTLS_CPPFLAGS="$(NRF52840_MBEDTLS_CPPFLAGS)" \
$(NULL)
1 change: 0 additions & 1 deletion examples/Makefile-posix
Original file line number Diff line number Diff line change
@@ -94,7 +94,6 @@ configure_OPTIONS = \
--enable-ncp-app=all \
--with-ncp-bus=uart \
--with-examples=posix \
--with-platform-info=POSIX \
--enable-application-coap \
--enable-border-router \
--enable-cert-log \
44 changes: 26 additions & 18 deletions examples/platforms/cc2538/openthread-core-cc2538-config.h
Original file line number Diff line number Diff line change
@@ -34,6 +34,14 @@
#ifndef OPENTHREAD_CORE_CC2538_CONFIG_H_
#define OPENTHREAD_CORE_CC2538_CONFIG_H_

/**
* @def OPENTHREAD_CONFIG_PLATFORM_INFO
*
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO "CC2538"

/**
* @def OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT
*
@@ -42,28 +50,28 @@
*/
#define OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT 1

/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT
*
* Define to 1 if you want to enable software ACK timeout logic.
*
*/
/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT
*
* Define to 1 if you want to enable software ACK timeout logic.
*
*/
#define OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT 1

/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT
*
* Define to 1 if you want to enable software retransmission logic.
*
*/
/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT
*
* Define to 1 if you want to enable software retransmission logic.
*
*/
#define OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT 1

/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN
*
* Define to 1 if you want to enable software energy scanning logic.
*
*/
/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN
*
* Define to 1 if you want to enable software energy scanning logic.
*
*/
#define OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN 1

/**
8 changes: 8 additions & 0 deletions examples/platforms/cc2650/openthread-core-cc2650-config.h
Original file line number Diff line number Diff line change
@@ -29,6 +29,14 @@
#ifndef OPENTHREAD_CORE_CC2650_CONFIG_H_
#define OPENTHREAD_CORE_CC2650_CONFIG_H_

/**
* @def OPENTHREAD_CONFIG_PLATFORM_INFO
*
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO "CC2650"

/**
* @def OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS
*
8 changes: 8 additions & 0 deletions examples/platforms/cc2652/openthread-core-cc2652-config.h
Original file line number Diff line number Diff line change
@@ -29,6 +29,14 @@
#ifndef OPENTHREAD_CORE_CC2652_CONFIG_H_
#define OPENTHREAD_CORE_CC2652_CONFIG_H_

/**
* @def OPENTHREAD_CONFIG_PLATFORM_INFO
*
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO "CC2652"

/**
* @def SETTINGS_CONFIG_BASE_ADDRESS
*
51 changes: 32 additions & 19 deletions examples/platforms/da15000/openthread-core-da15000-config.h
Original file line number Diff line number Diff line change
@@ -34,7 +34,20 @@
#ifndef OPENTHREAD_CORE_DA15000_CONFIG_H_
#define OPENTHREAD_CORE_DA15000_CONFIG_H_

#define SETTINGS_CONFIG_BASE_ADDRESS (0x7B000)
/**
* @def OPENTHREAD_CONFIG_PLATFORM_INFO
*
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO "DA15000"

/**
* @def SETTINGS_CONFIG_BASE_ADDRESS
*
* The base address of the pages to be used for non-volatile-settings storage.
*/
#define SETTINGS_CONFIG_BASE_ADDRESS (0x7B000)

/**
* @def OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT
@@ -44,28 +57,28 @@
*/
#define OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT 1

/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT
*
* Define to 1 if you want to enable software ACK timeout logic.
*
*/
/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT
*
* Define to 1 if you want to enable software ACK timeout logic.
*
*/
#define OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT 0

/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT
*
* Define to 1 if you want to enable software retransmission logic.
*
*/
/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT
*
* Define to 1 if you want to enable software retransmission logic.
*
*/
#define OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT 0

/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN
*
* Define to 1 if you want to enable software energy scanning logic.
*
*/
/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN
*
* Define to 1 if you want to enable software energy scanning logic.
*
*/
#define OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN 1

#endif // OPENTHREAD_CORE_DA15000_CONFIG_H_
8 changes: 8 additions & 0 deletions examples/platforms/efr32/openthread-core-efr32-config.h
Original file line number Diff line number Diff line change
@@ -35,6 +35,14 @@
#ifndef OPENTHREAD_CORE_EFR32_CONFIG_H_
#define OPENTHREAD_CORE_EFR32_CONFIG_H_

/**
* @def OPENTHREAD_CONFIG_PLATFORM_INFO
*
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO "EFR32"

/**
* @def OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT
*
44 changes: 26 additions & 18 deletions examples/platforms/emsk/openthread-core-emsk-config.h
Original file line number Diff line number Diff line change
@@ -34,6 +34,14 @@
#ifndef OPENTHREAD_CORE_EMSK_CONFIG_H_
#define OPENTHREAD_CORE_EMSK_CONFIG_H_

/**
* @def OPENTHREAD_CONFIG_PLATFORM_INFO
*
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO "EMSK"

/**
* @def OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT
*
@@ -42,28 +50,28 @@
*/
#define OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT 1

/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT
*
* Define to 1 if you want to enable software ACK timeout logic.
*
*/
/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT
*
* Define to 1 if you want to enable software ACK timeout logic.
*
*/
#define OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ACK_TIMEOUT 0

/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT
*
* Define to 1 if you want to enable software retransmission logic.
*
*/
/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT
*
* Define to 1 if you want to enable software retransmission logic.
*
*/
#define OPENTHREAD_CONFIG_ENABLE_SOFTWARE_RETRANSMIT 0

/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN
*
* Define to 1 if you want to enable software energy scanning logic.
*
*/
/**
* @def OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN
*
* Define to 1 if you want to enable software energy scanning logic.
*
*/
#define OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN 0

#endif // OPENTHREAD_CORE_EMSK_CONFIG_H_
8 changes: 8 additions & 0 deletions examples/platforms/gp712/openthread-core-gp712-config.h
Original file line number Diff line number Diff line change
@@ -34,4 +34,12 @@
#ifndef OPENTHREAD_CORE_GP712_CONFIG_H_
#define OPENTHREAD_CORE_GP712_CONFIG_H_

/**
* @def OPENTHREAD_CONFIG_PLATFORM_INFO
*
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO "GP712"

#endif // OPENTHREAD_CORE_GP712_CONFIG_H_
8 changes: 8 additions & 0 deletions examples/platforms/kw41z/openthread-core-kw41z-config.h
Original file line number Diff line number Diff line change
@@ -35,6 +35,14 @@
#ifndef OPENTHREAD_CORE_KW41Z_CONFIG_H_
#define OPENTHREAD_CORE_KW41Z_CONFIG_H_

/**
* @def OPENTHREAD_CONFIG_PLATFORM_INFO
*
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO "KW41Z"

/**
* @def OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT
*
8 changes: 8 additions & 0 deletions examples/platforms/nrf52840/openthread-core-nrf52840-config.h
Original file line number Diff line number Diff line change
@@ -35,6 +35,14 @@
#ifndef OPENTHREAD_CORE_NRF52840_CONFIG_H_
#define OPENTHREAD_CORE_NRF52840_CONFIG_H_

/**
* @def OPENTHREAD_CONFIG_PLATFORM_INFO
*
* The platform-specific string to insert into the OpenThread version string.
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_INFO "NRF52840"

/**
* @def OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS
*
Loading

0 comments on commit 5ecab16

Please sign in to comment.