Skip to content

Commit ef79669

Browse files
committed
【修改】:修改提示信息
1 parent 686aa76 commit ef79669

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

cmds/cmd_menuconfig.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,19 +163,20 @@ def cmd(args):
163163
if not os.getenv("RTT_ROOT"):
164164
if get_rtt_name != 'rt-thread':
165165
print("\n<menuconfig> 命令应当在某一特定 BSP 目录下执行,例如:\"rt-thread/bsp/stm32/stm32f091-st-nucleo\"")
166-
print("请确保当前目录为 BSP 根目录,并且该目录中有 Kconfig 文件。")
167-
print("接下来你可以按照如下方式修改 Kconfig 文件:\n")
166+
print("请确保当前目录为 BSP 根目录,并且该目录中有 Kconfig 文件。\n")
168167

169168
print ("<menuconfig> command should be used in a bsp root path with a Kconfig file.")
169+
print ("Example: \"rt-thread/bsp/stm32/stm32f091-st-nucleo\"")
170170
print ("You should check if there is a Kconfig file in your bsp root first.")
171-
print ('And then you can check Kconfig file and modify the default option below to your rtthread root path.\n')
172171

173-
print ('config $RTT_DIR')
172+
print ('\nconfig $RTT_DIR')
174173
print ('string')
175174
print ('option env="RTT_ROOT"')
176175
print ('default "../.."\n')
177176
print ('例如修改 default 这一项为 rt-thread 所在路径: default "F:/git_repositories/rt-thread"')
178177

178+
print ('\n下面的警告信息提示与找不到正确的 Kconfig 文件有关:')
179+
179180
# if not args.menuconfig_easy:
180181
# return
181182

@@ -237,7 +238,7 @@ def cmd(args):
237238
mtime2 = os.path.getmtime(fn)
238239
else:
239240
mtime2 = -1
240-
241+
241242
if mtime != mtime2:
242243
mk_rtconfig(fn)
243244

0 commit comments

Comments
 (0)