mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-03-02 10:15:26 +08:00
commit
982ad7bcbc
@ -1,2 +0,0 @@
|
|||||||
Cannot found RT-Thread root directory, please check RTT_ROOT
|
|
||||||
C:\Users\92036\Desktop\rtt\bsp
|
|
@ -39,15 +39,17 @@ def update_all_project_files(root_path):
|
|||||||
if os.path.isdir(root_path):
|
if os.path.isdir(root_path):
|
||||||
projects = os.listdir(root_path)
|
projects = os.listdir(root_path)
|
||||||
# is a project path?
|
# is a project path?
|
||||||
if "SConscript" in projects:
|
if "SConstruct" in projects:
|
||||||
try:
|
try:
|
||||||
if "win32" in sys.platform:
|
# update rtconfig.h and .config
|
||||||
retval = os.getcwd()
|
if "Kconfig" in projects:
|
||||||
os.chdir(root_path)
|
if "win32" in sys.platform:
|
||||||
os.system("menuconfig --silent")
|
retval = os.getcwd()
|
||||||
os.chdir(retval)
|
os.chdir(root_path)
|
||||||
else:
|
os.system("menuconfig --silent")
|
||||||
os.system('scons --pyconfig-silent -C {0}'.format(root_path)) # update rtconfig.h and .config
|
os.chdir(retval)
|
||||||
|
else:
|
||||||
|
os.system('scons --pyconfig-silent -C {0}'.format(root_path))
|
||||||
update_project_file(root_path)
|
update_project_file(root_path)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("error message: {}".format(e))
|
print("error message: {}".format(e))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user