Skip to content

Commit 153b56e

Browse files
supperthomasRbb666
authored andcommitted
[action/tool] ci 验证l4平台, 修复scons --dist
1 parent 6d8d888 commit 153b56e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/action_tools.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
strategy:
4141
fail-fast: false
4242
env:
43-
TEST_BSP_ROOT: bsp/stm32/stm32f407-atk-explorer
43+
TEST_BSP_ROOT: bsp/stm32/stm32l475-atk-pandora
4444
steps:
4545
- uses: actions/checkout@v4
4646

bsp/stm32/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 stm32 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),
18-
os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE))
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

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

0 commit comments

Comments
 (0)