Skip to content

Commit 2313424

Browse files
committed
[tools] Add better way to generate MDK project file.
1 parent e38f3aa commit 2313424

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tools/buildbot.py

+11
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ def usage():
1919
command = ' -c'
2020
elif sys.argv[1] == 'project':
2121
command = ' --target=mdk -s'
22+
23+
projects = os.listdir(BSP_ROOT)
24+
for item in projects:
25+
project_dir = os.path.join(BSP_ROOT, item)
26+
27+
if os.path.isfile(os.path.join(project_dir, 'template.uvproj')):
28+
print ('prepare MDK project file on ' + project_dir)
29+
30+
os.system('scons --directory=' + project_dir + command)
31+
32+
sys.exit(0)
2233
else:
2334
usage()
2435
sys.exit(0)

0 commit comments

Comments
 (0)