[efr32] move __START definition to Makefile-efr32mgxx makefiles (#4278)

Allows external projects to use SDK library generated in OpenThread
with constructors called at startup.
This commit is contained in:
Marven Gilhespie
2019-10-28 14:07:47 -07:00
committed by Jonathan Hui
parent 988dc85639
commit 13f138284f
5 changed files with 2 additions and 5 deletions
+1
View File
@@ -112,6 +112,7 @@ COMMONCFLAGS := \
-Os \
-g \
-I$(HAL_CONF_DIR) \
-D__START=main \
-D$(MCU) \
$(EFR32MG12_CONFIG_FILE_CPPFLAGS) \
$(NULL)
+1
View File
@@ -98,6 +98,7 @@ COMMONCFLAGS := \
-Os \
-g \
-I$(HAL_CONF_DIR) \
-D__START=main \
-D$(MCU) \
$(EFR32MG21_CONFIG_FILE_CPPFLAGS) \
$(NULL)
-2
View File
@@ -43,8 +43,6 @@ EFR32_BOARD_DIR = $(shell echo $(BOARD) | tr A-Z a
EFR32MG_SDK_SRCDIR = $(top_srcdir)/third_party/silabs/gecko_sdk_suite/v2.6
libopenthread_efr32mg12_a_CPPFLAGS = \
-D__START=main \
-D__STARTUP_CLEAR_BSS \
-DPLATFORM_HEADER=\"@top_builddir@/third_party/silabs/gecko_sdk_suite/v2.6/platform/base/hal/micro/cortexm3/compiler/gcc.h\" \
-DNVIC_CONFIG=\"platform/base/hal/micro/cortexm3/efm32/nvic-config.h\" \
-Wno-sign-compare \
-2
View File
@@ -43,8 +43,6 @@ EFR32_BOARD_DIR = $(shell echo $(BOARD) | tr A-Z a
EFR32MG_SDK_SRCDIR = $(top_srcdir)/third_party/silabs/gecko_sdk_suite/v2.6
libopenthread_efr32mg21_a_CPPFLAGS = \
-D__START=main \
-D__STARTUP_CLEAR_BSS \
-DPLATFORM_HEADER=\"@top_builddir@/third_party/silabs/gecko_sdk_suite/v2.6/platform/base/hal/micro/cortexm3/compiler/gcc.h\" \
-Wno-sign-compare \
-DCORTEXM3 \
-1
View File
@@ -57,7 +57,6 @@ EFR32_BOARD_DIR = $(shell echo $(BOARD) | tr A-Z a-z
EFR32MG_SDK_SRCDIR = $(top_srcdir)/third_party/silabs/gecko_sdk_suite/v2.6
COMMONCPPFLAGS = \
-D__START=main \
-D__STARTUP_CLEAR_BSS \
-I$(srcdir) \
-I$(top_srcdir)/include \