MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / menuconfig

Function menuconfig

tools/env_utility.py:380–409  ·  view source on GitHub ↗
(RTT_ROOT)

Source from the content-addressed store, hash-verified

378
379# menuconfig for Linux and Windows
380def menuconfig(RTT_ROOT):
381 kconfiglib_check_installed()
382
383 import menuconfig
384
385 # Exclude utestcases
386 exclude_utestcases(RTT_ROOT)
387
388 fn = '.config'
389 fn_old = '.config.old'
390
391 sys.argv = ['menuconfig', 'Kconfig']
392
393 # fix vscode console
394 kconfiglib_fix_locale()
395
396 menuconfig._main()
397
398 if os.path.isfile(fn):
399 if os.path.isfile(fn_old):
400 diff_eq = operator.eq(get_file_md5(fn), get_file_md5(fn_old))
401 else:
402 diff_eq = False
403 else:
404 sys.exit(-1)
405
406 # make rtconfig.h
407 if diff_eq == False:
408 shutil.copyfile(fn, fn_old)
409 mk_rtconfig(fn)
410
411
412# guiconfig for windows and linux

Callers 1

PrepareBuildingFunction · 0.90

Calls 5

exclude_utestcasesFunction · 0.85
kconfiglib_fix_localeFunction · 0.85
get_file_md5Function · 0.85
mk_rtconfigFunction · 0.85

Tested by

no test coverage detected