summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorliukangcc <[email protected]>2021-12-23 11:51:58 +0800
committerBernard Xiong <[email protected]>2021-12-24 05:36:36 +0800
commitbcdfa35f867c651825c4f50f1c0fc7beb143a5a2 (patch)
treeb7318be8dbb990d02d1922f2c094a8ac2815c0a6 /tools
parent9dc4ca0d313aceffdc229d0b05c1771fc07e6570 (diff)
[update] windows tools
Diffstat (limited to 'tools')
-rw-r--r--tools/buildbot.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/buildbot.py b/tools/buildbot.py
index 02f6e37d4f..04779071cf 100644
--- a/tools/buildbot.py
+++ b/tools/buildbot.py
@@ -40,9 +40,14 @@ def update_all_project_files(root_path):
projects = os.listdir(root_path)
# is a project path?
if "SConscript" in projects:
- print('new bsp path {}'.format(root_path))
try:
- os.system('scons --pyconfig-silent -C {0}'.format(root_path)) # update rtconfig.h and .config
+ if "win32" in sys.platform:
+ retval = os.getcwd()
+ os.chdir(root_path)
+ os.system("menuconfig --silent")
+ os.chdir(retval)
+ else:
+ os.system('scons --pyconfig-silent -C {0}'.format(root_path)) # update rtconfig.h and .config
update_project_file(root_path)
except Exception as e:
print("error message: {}".format(e))