File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed
Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -157,21 +157,23 @@ def cmd(args):
157157 dirname = os .path .split (os .path .split (currentdir )[0 ])[0 ]
158158 get_rtt_name = os .path .basename (dirname )
159159 os_version = platform .platform (True )[10 :13 ]
160- # print os.path.split(currentdir)[1]
161160 kconfig_win7_path = os .path .join (
162161 env_root , 'tools' , 'bin' , 'kconfig-mconf_win7.exe' )
163162
164163 if not os .getenv ("RTT_ROOT" ):
165164 if get_rtt_name != 'rt-thread' :
166- print ("\n menuconfig 命令应当在一个 BSP 的根目录下被执行,请确保当前目录为 BSP 根目录,并且根目录中有 Kconfig 文件。" )
165+ print ("\n <menuconfig> 命令应当在一个 BSP 的根目录下被执行,请确保当前目录为 BSP 根目录,并且根目录中有 Kconfig 文件。" )
167166 print ("接下来你可以按照如下方式修改 Kconfig 文件:\n " )
167+
168+ print ("<menuconfig> command should be used in a bsp root path with a Kconfig file." )
169+ print ("You should check if there is a Kconfig file in your bsp root first." )
170+ print ('And then you can check Kconfig file and modify the default option below to your rtthread root path.\n ' )
171+
168172 print ('config $RTT_DIR' )
169173 print ('string' )
170174 print ('option env="RTT_ROOT"' )
171175 print ('default "../.."\n ' )
172- print ('修改 default 这一项为 rt-thread 所在路径: default "F:/git_repositories/rt-thread"' )
173-
174- print ('如果 scons 编译找不到 RTT_ROOT ,你可以使 <set RTT_ROOT=your_rtthread_root_path> 来设置 RTT_ROOT。' )
176+ print ('例如修改 default 这一项为 rt-thread 所在路径: default "F:/git_repositories/rt-thread"' )
175177
176178 if not args .menuconfig_easy :
177179 return
Original file line number Diff line number Diff line change @@ -345,7 +345,10 @@ def package_list():
345345 env_root = Import ('env_root' )
346346
347347 if not os .path .isfile (fn ):
348- print ('\n 没有找到 .config 文件, 需要先使用 < menuconfig > 命令来配置 BSP。' )
348+ print ("\n 当前路径下没有发现 .config 文件,请确保当前目录为 BSP 根目录。" )
349+ print ("如果确定当前目录为 BSP 根目录,请先使用 <menuconfig> 命令来生成 .config 文件。\n " )
350+ print ('No system configuration file : .config.' )
351+ print ('You should use < menuconfig > command to config bsp first.' )
349352 return
350353
351354 pkgs = kconfig .parse (fn )
@@ -491,7 +494,9 @@ def pre_package_update():
491494
492495 if not os .path .exists ('.config' ):
493496 print ("\n 当前路径下没有发现 .config 文件,请确保当前目录为 BSP 根目录。" )
494- print ("如果确定当前目录为 BSP 根目录,请先使用 <menuconfig> 命令来生成 .config 文件。" )
497+ print ("如果确定当前目录为 BSP 根目录,请先使用 <menuconfig> 命令来生成 .config 文件。\n " )
498+ print ('No system configuration file : .config.' )
499+ print ('You should use < menuconfig > command to config bsp first.' )
495500 return False
496501
497502 bsp_packages_path = os .path .join (bsp_root , 'packages' )
You can’t perform that action at this time.
0 commit comments