Skip to content

Commit 042700c

Browse files
committed
skip none for bsp dist
1 parent 000216d commit 042700c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bsp/gd32/arm/tools/sdk_dist.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ def dist_do_building(BSP_ROOT, dist_dir):
2727
print("=> copy gd32 bsp library")
2828
library_dir = os.path.join(dist_dir, 'libraries')
2929
library_path = os.path.join(os.path.dirname(BSP_ROOT), 'libraries')
30-
bsp_copy_files(os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE),
31-
os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE))
30+
# Only copy specific library when BSP_LIBRARY_TYPE is not None
31+
if rtconfig.BSP_LIBRARY_TYPE is not None:
32+
bsp_copy_files(os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE),
33+
os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE))
3234

3335
print("=> copy bsp drivers")
3436
bsp_copy_files(os.path.join(library_path, 'gd32_drivers'), os.path.join(library_dir, 'gd32_drivers'))

0 commit comments

Comments
 (0)