Skip to content

Commit 0a57f0a

Browse files
fengmuyouRbb666
authored andcommitted
bsp:stm32:add Dependency packages missing, please running 'pkgs --update'
1 parent c285c98 commit 0a57f0a

File tree

129 files changed

+9081
-588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+9081
-588
lines changed

bsp/stm32/stm32f072-st-nucleo/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f0_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f0_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f091-st-nucleo/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@ except:
1414
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
1515
print(RTT_ROOT)
1616
exit(-1)
17+
18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f0_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f0_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
1736

1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

bsp/stm32/stm32f103-100ask-mini/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f103-100ask-pro/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f103-atk-nano/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f103-atk-warshipv3/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f103-blue-pill/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f103-dofly-M3S/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f103-dofly-lyc8/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f103-fire-arbitrary/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f103-gizwits-gokitv21/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f103-hw100k-ibox/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f103-onenet-nbiot/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f103-yf-ufun/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

bsp/stm32/stm32f103-ys-f1pro/SConstruct

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ except:
1515
print(RTT_ROOT)
1616
exit(-1)
1717

18+
def bsp_pkg_check():
19+
import subprocess
20+
21+
check_paths = [
22+
os.path.join("packages", "CMSIS-Core-latest"),
23+
os.path.join("packages", "stm32f1_cmsis_driver-latest"),
24+
os.path.join("packages", "stm32f1_hal_driver-latest")
25+
]
26+
27+
need_update = not all(os.path.exists(p) for p in check_paths)
28+
29+
if need_update:
30+
print("\n==============================================================")
31+
print("Dependency packages missing, please running 'pkgs --update'...")
32+
print("==============================================================")
33+
exit(1)
34+
35+
RegisterPreBuildingAction(bsp_pkg_check)
36+
1837
TARGET = 'rt-thread.' + rtconfig.TARGET_EXT
1938

2039
DefaultEnvironment(tools=[])

0 commit comments

Comments
 (0)