mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 01:28:23 +00:00
bsp:stm32:add Dependency packages missing, please running 'pkgs --update'
This commit is contained in:
@@ -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=[])
|
||||
|
||||
Reference in New Issue
Block a user