Skip to content

Commit be8822d

Browse files
committed
update buildbot.py
1 parent 502176a commit be8822d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

tools/buildbot.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,17 @@ def update_all_project_files(root_path):
3939
if os.path.isdir(root_path):
4040
projects = os.listdir(root_path)
4141
# is a project path?
42-
if "SConscript" in projects:
42+
if "SConstruct" in projects:
4343
try:
44-
if "win32" in sys.platform:
45-
retval = os.getcwd()
46-
os.chdir(root_path)
47-
os.system("menuconfig --silent")
48-
os.chdir(retval)
49-
else:
50-
os.system('scons --pyconfig-silent -C {0}'.format(root_path)) # update rtconfig.h and .config
44+
# update rtconfig.h and .config
45+
if "Kconfig" in projects:
46+
if "win32" in sys.platform:
47+
retval = os.getcwd()
48+
os.chdir(root_path)
49+
os.system("menuconfig --silent")
50+
os.chdir(retval)
51+
else:
52+
os.system('scons --pyconfig-silent -C {0}'.format(root_path))
5153
update_project_file(root_path)
5254
except Exception as e:
5355
print("error message: {}".format(e))

0 commit comments

Comments
 (0)