[bsp][at32]Update AT32 sdk_dist.py (#10130)

Update AT32 sdk_dist.py

fix scons --dist
This commit is contained in:
Dozingfiretruck 2025-03-20 14:59:45 +08:00 committed by GitHub
parent b019e092e7
commit 713be7f3c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 4 deletions

View File

@ -28,6 +28,7 @@ def dist_do_building(BSP_ROOT, dist_dir):
print("=> copy at32 bsp library") print("=> copy at32 bsp library")
library_dir = os.path.join(dist_dir, 'libraries') library_dir = os.path.join(dist_dir, 'libraries')
library_path = os.path.join(os.path.dirname(BSP_ROOT), 'libraries') library_path = os.path.join(os.path.dirname(BSP_ROOT), 'libraries')
if rtconfig.BSP_LIBRARY_TYPE is not None:
bsp_copy_files( bsp_copy_files(
os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE), os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE),
os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE), os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE),