bsp:stm32:add Dependency packages missing, please running 'pkgs --update'

This commit is contained in:
zhangshuxun
2025-05-07 17:58:16 +08:00
committed by Rbb666
parent c285c9806b
commit 0a57f0a038
129 changed files with 9081 additions and 588 deletions

View File

@@ -15,6 +15,25 @@ except:
print(RTT_ROOT)
exit(-1)
def bsp_pkg_check():
import subprocess
check_paths = [
os.path.join("packages", "CMSIS-Core-latest"),
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
os.path.join("packages", "stm32f1_hal_driver-latest")
]
need_update = not all(os.path.exists(p) for p in check_paths)
if need_update:
print("\n==============================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("==============================================================")
exit(1)
RegisterPreBuildingAction(bsp_pkg_check)
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
DefaultEnvironment(tools=[])