Skip to content

Commit 713be7f

Browse files
[bsp][at32]Update AT32 sdk_dist.py (#10130)
Update AT32 sdk_dist.py fix scons --dist
1 parent b019e09 commit 713be7f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bsp/at32/tools/sdk_dist.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ def dist_do_building(BSP_ROOT, dist_dir):
2828
print("=> copy at32 bsp library")
2929
library_dir = os.path.join(dist_dir, 'libraries')
3030
library_path = os.path.join(os.path.dirname(BSP_ROOT), 'libraries')
31-
bsp_copy_files(
32-
os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE),
33-
os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE),
34-
)
31+
if rtconfig.BSP_LIBRARY_TYPE is not None:
32+
bsp_copy_files(
33+
os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE),
34+
os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE),
35+
)
3536

3637
print("=> copy bsp drivers")
3738
bsp_copy_files(os.path.join(library_path, 'rt_drivers'), os.path.join(library_dir, 'rt_drivers'))

0 commit comments

Comments
 (0)