Skip to content

Commit 59a4b6b

Browse files
authored
[bsp][wch]修复scons --dist (RT-Thread#10473)
fix wch scons --dist
1 parent 1a6942b commit 59a4b6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bsp/wch/risc-v/tools/sdk_dist.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ def dist_do_building(BSP_ROOT, dist_dir):
1414
print("=> copy ch32 bsp library")
1515
library_dir = os.path.join(dist_dir, 'Libraries')
1616
library_path = os.path.join(os.path.dirname(BSP_ROOT), 'Libraries')
17-
bsp_copy_files(os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE), os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE))
18-
17+
if rtconfig.BSP_LIBRARY_TYPE is not None:
18+
bsp_copy_files(os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE),
19+
os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE))
1920
print("=> copy bsp drivers")
2021
bsp_copy_files(os.path.join(library_path, 'ch32_drivers'), os.path.join(library_dir, 'ch32_drivers'))
2122
shutil.copyfile(os.path.join(library_path, 'Kconfig'), os.path.join(library_dir, 'Kconfig'))

0 commit comments

Comments
 (0)