Kaynağa Gözat

add:修复air640w编译

Dozingfiretruck 3 yıl önce
ebeveyn
işleme
cdd256dcb7

+ 2 - 0
bsp/air640w/rtt/luat/SConscript

@@ -8,5 +8,7 @@ objs = objs + SConscript(os.path.join(cwd, '../../../lua/SConscript'))
 objs = objs + SConscript(os.path.join(cwd, '../../../luat/SConscript'))
 objs = objs + SConscript(os.path.join(cwd, '../../../components/network/lwip/SConscript'))
 objs = objs + SConscript(os.path.join(cwd, '../../../components/lcd/SConscript'))
+objs = objs + SConscript(os.path.join(cwd, '../../../components/cmux/SConscript'))
+objs = objs + SConscript(os.path.join(cwd, '../../../components/shell/SConscript'))
 
 Return('objs')

+ 12 - 0
components/cmux/SConscript

@@ -0,0 +1,12 @@
+Import('RTT_ROOT')
+Import('rtconfig')
+from building import *
+
+cwd = GetCurrentDir()
+src = Glob('*.c')
+
+CPPPATH = [cwd]
+
+group = DefineGroup('cmux', src, depend = [], CPPPATH = CPPPATH)
+
+Return('group')

+ 12 - 0
components/shell/SConscript

@@ -0,0 +1,12 @@
+Import('RTT_ROOT')
+Import('rtconfig')
+from building import *
+
+cwd = GetCurrentDir()
+src = Glob('*.c')
+
+CPPPATH = [cwd]
+
+group = DefineGroup('shell', src, depend = [], CPPPATH = CPPPATH)
+
+Return('group')

+ 1 - 1
luat/modules/SConscript

@@ -27,7 +27,7 @@ if not GetDepend(['SAL_USING_POSIX']):
 if not GetDepend(['RT_USING_ADC']):
     src.remove('luat_lib_adc.c')
 
-src.remove('luat_shell.c')
+# src.remove('luat_shell.c')
 src.remove('luat_lib_lpmem.c')
 src.remove('luat_lib_pm.c')