@@ -113,13 +113,13 @@ AC_DEFUN([NL_WITH_LWIP],
113113
114114 AC_ARG_WITH ( lwip-target ,
115115 AS_HELP_STRING ( [ --with-lwip-target=target] ,
116- [ Specify the target environment for which LwIP will be built. Choose one of: standalone, nrf5, none @<:@ default=standalone@:>@ .] ) ,
116+ [ Specify the target environment for which LwIP will be built. Choose one of: standalone, nrf5, efr32, none @<:@ default=standalone@:>@ .] ) ,
117117 [
118118 if test "${nl_with_lwip}" != "internal"; then
119119 AC_MSG_ERROR ( [ --with-lwip-target can only be used when --with-lwip=internal is selected] )
120120 else
121121 case "${withval}" in
122- standalone|nrf5|none)
122+ standalone|nrf5|efr32| none)
123123 nl_with_lwip_target=${withval}
124124 ;;
125125 *)
@@ -179,6 +179,9 @@ AC_DEFUN([NL_WITH_LWIP],
179179 nrf5)
180180 LWIP_CPPFLAGS="${LWIP_CPPFLAGS} -I${ac_abs_confdir}/src/lwip/nrf5 -I${ac_abs_confdir}/src/lwip/freertos"
181181 ;;
182+ efr32)
183+ LWIP_CPPFLAGS="${LWIP_CPPFLAGS} -I${ac_abs_confdir}/src/lwip/efr32 -I${ac_abs_confdir}/src/lwip/freertos"
184+ ;;
182185 *)
183186 ;;
184187 esac
@@ -322,5 +325,6 @@ AC_DEFUN([NL_WITH_LWIP],
322325 AM_CONDITIONAL([ WEAVE_WITH_LWIP_INTERNAL] , [ test "${nl_with_lwip}" = "internal"] )
323326 AM_CONDITIONAL([ WEAVE_LWIP_TARGET_STANDALONE] , [ test "${nl_with_lwip}" = "internal" -a "${nl_with_lwip_target}" = "standalone" ] )
324327 AM_CONDITIONAL([ WEAVE_LWIP_TARGET_NRF5] , [ test "${nl_with_lwip}" = "internal" -a "${nl_with_lwip_target}" = "nrf5" ] )
328+ AM_CONDITIONAL([ WEAVE_LWIP_TARGET_EFR32] , [ test "${nl_with_lwip}" = "internal" -a "${nl_with_lwip_target}" = "efr32" ] )
325329
326330] )
0 commit comments