diff options
| author | Bernard Xiong <[email protected]> | 2022-01-10 22:58:45 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-10 22:58:45 +0800 |
| commit | 982ad7bcbcbdc31305883803fadf63bad72dbc73 (patch) | |
| tree | 274e4a1bc3aef6af815b30c0433c6b6dcb1db869 /tools | |
| parent | 23750ac0d0dacf9d75ac92a55ad8b249952ac398 (diff) | |
| parent | f9b01095f20488fe5f16d0dd1b85cb507b3b5f2b (diff) | |
Merge pull request #5498 from Guozhanxin/buildbot
update buildbot.py
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/1.txt | 2 | ||||
| -rw-r--r-- | tools/buildbot.py | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/tools/1.txt b/tools/1.txt deleted file mode 100644 index fec83eefd2..0000000000 --- a/tools/1.txt +++ /dev/null @@ -1,2 +0,0 @@ -Cannot found RT-Thread root directory, please check RTT_ROOT -C:\Users\92036\Desktop\rtt\bsp 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)) |
