Skip to content

Commit

Permalink
[tools] menuconfig.py silent 模式的时候,不检查 .config 是否有变化,直接更新 rtconfig.h
Browse files Browse the repository at this point in the history
这么修改,是因为虽然 .config 没有变化,但与 rtconfig.h 的配置已经不一致。

Signed-off-by: MurphyZhao <[email protected]>
  • Loading branch information
murphyzhao committed Dec 28, 2018
1 parent 95b9788 commit 4654472
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions tools/menuconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,18 +264,7 @@ def pyconfig_silent(RTT_ROOT):

fn = '.config'

if os.path.isfile(fn):
mtime = os.path.getmtime(fn)
else:
mtime = -1

pymenuconfig.main(['--kconfig', 'Kconfig', '--config', '.config', '--silent', 'True'])

if os.path.isfile(fn):
mtime2 = os.path.getmtime(fn)
else:
mtime2 = -1

# make rtconfig.h
if mtime != mtime2:
mk_rtconfig(fn)
# silent mode, force to make rtconfig.h
mk_rtconfig(fn)

0 comments on commit 4654472

Please sign in to comment.