(RTT_ROOT)
| 411 | |
| 412 | # guiconfig for windows and linux |
| 413 | def 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 |
no test coverage detected