Ver código fonte

[bsp/stm32wle5-yizhilian-lm402]修复scons --dist缺失大量文件

会飞的猪 2 anos atrás
pai
commit
65f1804005
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7 0
      bsp/stm32/stm32wle5-yizhilian-lm402/rtconfig.py

+ 7 - 0
bsp/stm32/stm32wle5-yizhilian-lm402/rtconfig.py

@@ -175,3 +175,10 @@ elif PLATFORM == 'iccarm':
 
     EXEC_PATH = EXEC_PATH + '/arm/bin/'
     POST_ACTION = 'ielftool --bin $TARGET rtthread.bin'
+
+def dist_handle(BSP_ROOT, dist_dir):
+    import sys
+    cwd_path = os.getcwd()
+    sys.path.append(os.path.join(os.path.dirname(BSP_ROOT), 'tools'))
+    from sdk_dist import dist_do_building
+    dist_do_building(BSP_ROOT, dist_dir)