From 8ed382207d6b68fd3f897a4672ffd55b37440260 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Fri, 22 Mar 2019 08:11:56 -0700 Subject: [PATCH] [efr32] fix build issues when sub-GHz support is not configured (#3704) --- examples/platforms/efr32/Makefile.am | 1 + examples/platforms/efr32/openthread-core-efr32-config.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/examples/platforms/efr32/Makefile.am b/examples/platforms/efr32/Makefile.am index 0b8d0ac05..a4d768a9b 100644 --- a/examples/platforms/efr32/Makefile.am +++ b/examples/platforms/efr32/Makefile.am @@ -50,6 +50,7 @@ libopenthread_efr32_a_CPPFLAGS = -I$(top_srcdir)/examples/platforms/efr32/$(EFR32_BOARD_DIR) \ -I$(top_srcdir)/src/core \ -I$(top_srcdir)/third_party/silabs/rail_config \ + -I$(EFR32MG_SDK_SRCDIR) \ -I$(EFR32MG_SDK_SRCDIR)/platform/radio/rail_lib/common \ -I$(EFR32MG_SDK_SRCDIR)/platform/radio/rail_lib/chip/efr32 \ -I$(EFR32MG_SDK_SRCDIR)/platform/radio/rail_lib/protocol/ieee802154 \ diff --git a/examples/platforms/efr32/openthread-core-efr32-config.h b/examples/platforms/efr32/openthread-core-efr32-config.h index f21326b37..c58ccbe1d 100644 --- a/examples/platforms/efr32/openthread-core-efr32-config.h +++ b/examples/platforms/efr32/openthread-core-efr32-config.h @@ -55,6 +55,8 @@ */ #ifdef RADIO_CONFIG_915MHZ_OQPSK_SUPPORT #define OPENTHREAD_CONFIG_RADIO_915MHZ_OQPSK_SUPPORT 1 +#else +#define OPENTHREAD_CONFIG_RADIO_915MHZ_OQPSK_SUPPORT 0 #endif /* @@ -65,6 +67,8 @@ */ #ifdef RADIO_CONFIG_2P4GHZ_OQPSK_SUPPORT #define OPENTHREAD_CONFIG_RADIO_2P4GHZ_OQPSK_SUPPORT 1 +#else +#define OPENTHREAD_CONFIG_RADIO_2P4GHZ_OQPSK_SUPPORT 0 #endif /**