Skip to content

Commit 767499c

Browse files
author
hexiao
committed
[bsp][hc32][tools][sdk_dist] add copy library condition: if rtconfig.BSP_LIBRARY_TYPE is not None
1 parent 0cc71d5 commit 767499c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bsp/hc32/tools/sdk_dist.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ def dist_do_building(BSP_ROOT, dist_dir):
1313
print("=> copy hc32 bsp library")
1414
library_dir = os.path.join(dist_dir, 'libraries')
1515
library_path = os.path.join(os.path.dirname(BSP_ROOT), 'libraries')
16-
bsp_copy_files(os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE),
17-
os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE))
16+
if rtconfig.BSP_LIBRARY_TYPE is not None:
17+
bsp_copy_files(os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE),
18+
os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE))
1819

1920
print("=> copy bsp drivers")
2021
bsp_copy_files(os.path.join(library_path, 'hc32_drivers'), os.path.join(library_dir, 'hc32_drivers'))

0 commit comments

Comments
 (0)