summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2022-01-09 10:02:07 +0800
committerguozhanxin <[email protected]>2022-01-09 10:02:48 +0800
commitbe8822db382efe6af98b1ea3877876cda250c4a8 (patch)
tree16667209823cb1f43a12d95d619b5160d566903e
parent502176ae6341e48505799893a5d1c42928db1c66 (diff)
update buildbot.py
-rw-r--r--tools/buildbot.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/tools/buildbot.py b/tools/buildbot.py
index 04779071cf..e40abe4a5d 100644
--- a/tools/buildbot.py
+++ b/tools/buildbot.py
@@ -39,15 +39,17 @@ def update_all_project_files(root_path):
if os.path.isdir(root_path):
projects = os.listdir(root_path)
# is a project path?
- if "SConscript" in projects:
+ if "SConstruct" in projects:
try:
- 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 rtconfig.h and .config
+ if "Kconfig" in projects:
+ 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_project_file(root_path)
except Exception as e:
print("error message: {}".format(e))