From 0cbb1f08c1d22e64cbc4d1399dca25eded37af0f Mon Sep 17 00:00:00 2001 From: liuxianliang Date: Mon, 28 Jun 2021 12:39:19 +0800 Subject: [PATCH] [fix] set default lwip stack for old bsp folder. --- components/SConscript | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/SConscript b/components/SConscript index 82efd7b2fe..88927f881c 100644 --- a/components/SConscript +++ b/components/SConscript @@ -7,6 +7,11 @@ objs = [] cwd = GetCurrentDir() list = os.listdir(cwd) +# In some old bsp folder, Only define RT_USING_LWIP but not define which of LWIP stack. +# For this reason, the default lwip stack will be set LWIP2.0.3. +if not GetDepend('RT_USING_LWIP141') and not GetDepend('RT_USING_LWIP202') and not GetDepend('RT_USING_LWIP203') and not GetDepend('RT_USING_LWIP212'): + AddDepend('RT_USING_LWIP203') + for item in list: if item in remove_components: continue