diff options
| author | Supper Thomas <[email protected]> | 2025-02-26 14:17:22 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2025-03-10 22:47:02 +0800 |
| commit | f964d259d936d89257bef052636d7d76ddf9947d (patch) | |
| tree | e8d51b27f06d255bc007cd16323d5103c8cbc6d2 | |
| parent | d31826c5e06890108a5b214a5cc506fe7e15b8a8 (diff) | |
[action/tool] ci 验证l4平台, 修复scons --dist
| -rw-r--r-- | .github/workflows/action_tools.yml | 2 | ||||
| -rw-r--r-- | bsp/stm32/tools/sdk_dist.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/action_tools.yml b/.github/workflows/action_tools.yml index 413122f21b..85cf042859 100644 --- a/.github/workflows/action_tools.yml +++ b/.github/workflows/action_tools.yml @@ -40,7 +40,7 @@ jobs: strategy: fail-fast: false env: - TEST_BSP_ROOT: bsp/stm32/stm32f407-atk-explorer + TEST_BSP_ROOT: bsp/stm32/stm32l475-atk-pandora steps: - uses: actions/checkout@v4 diff --git a/bsp/stm32/tools/sdk_dist.py b/bsp/stm32/tools/sdk_dist.py index 8da926c521..7ef49f3a2b 100644 --- a/bsp/stm32/tools/sdk_dist.py +++ b/bsp/stm32/tools/sdk_dist.py @@ -14,8 +14,9 @@ def dist_do_building(BSP_ROOT, dist_dir): print("=> copy stm32 bsp library") library_dir = os.path.join(dist_dir, 'libraries') library_path = os.path.join(os.path.dirname(BSP_ROOT), 'libraries') - bsp_copy_files(os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE), - os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE)) + if rtconfig.BSP_LIBRARY_TYPE is not None: + bsp_copy_files(os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE), + os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE)) print("=> copy bsp drivers") bsp_copy_files(os.path.join(library_path, 'HAL_Drivers'), os.path.join(library_dir, 'HAL_Drivers')) |
