(RTT_ROOT)
| 378 | |
| 379 | # menuconfig for Linux and Windows |
| 380 | def 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 |
no test coverage detected