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

Function guiconfig

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

Source from the content-addressed store, hash-verified

411
412# guiconfig for windows and linux
413def guiconfig(RTT_ROOT):
414 kconfiglib_check_installed()
415
416 import guiconfig
417
418 # Exclude utestcases
419 exclude_utestcases(RTT_ROOT)
420
421 fn = '.config'
422 fn_old = '.config.old'
423
424 sys.argv = ['guiconfig', 'Kconfig']
425 guiconfig._main()
426
427 if os.path.isfile(fn):
428 if os.path.isfile(fn_old):
429 diff_eq = operator.eq(get_file_md5(fn), get_file_md5(fn_old))
430 else:
431 diff_eq = False
432 else:
433 sys.exit(-1)
434
435 # make rtconfig.h
436 if diff_eq == False:
437 shutil.copyfile(fn, fn_old)
438 mk_rtconfig(fn)
439
440
441# defconfig for windows and linux

Callers 1

PrepareBuildingFunction · 0.90

Calls 4

exclude_utestcasesFunction · 0.85
get_file_md5Function · 0.85
mk_rtconfigFunction · 0.85

Tested by

no test coverage detected