Skip to content

Commit a397567

Browse files
committed
【完善】:错误提示信息
1 parent 63fe4e8 commit a397567

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

cmds/cmd_menuconfig.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,10 @@ def cmd(args):
168168
print("\n<menuconfig> 命令应当在某一特定 BSP 目录下执行,例如:\"rt-thread/bsp/stm32/stm32f091-st-nucleo\"")
169169
print("请确保当前目录为 BSP 根目录,并且该目录中有 Kconfig 文件。\n")
170170

171-
print ("<menuconfig> command should be used in a bsp root path with a Kconfig file.")
171+
print ("\n<menuconfig> command should be used in a bsp root path with a Kconfig file.")
172172
print ("Example: \"rt-thread/bsp/stm32/stm32f091-st-nucleo\"")
173173
print ("You should check if there is a Kconfig file in your bsp root first.")
174174

175-
print ('\nconfig $RTT_DIR')
176-
print ('string')
177-
print ('option env="RTT_ROOT"')
178-
print ('default "../.."\n')
179-
180175
if determine_support_chinese(env_root):
181176
print ('例如修改 default 这一项为 rt-thread 所在路径: default "F:/git_repositories/rt-thread"')
182177
print ('\n下面的警告信息提示与找不到正确的 Kconfig 文件有关:')

cmds/cmd_package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def package_list():
361361
print ("\n当前路径下没有发现 .config 文件,请确保当前目录为 BSP 根目录。")
362362
print ("如果确定当前目录为 BSP 根目录,请先使用 <menuconfig> 命令来生成 .config 文件。\n")
363363

364-
print ('No system configuration file : .config.')
364+
print ('\nNo system configuration file : .config.')
365365
print ('You should use < menuconfig > command to config bsp first.')
366366
return
367367

0 commit comments

Comments
 (0)