| 110 | f.write(line) |
| 111 | |
| 112 | def bsp_update_kconfig_testcases(dist_dir): |
| 113 | # delete testcases in rt-thread/Kconfig |
| 114 | if not os.path.isfile(os.path.join(dist_dir, 'rt-thread/Kconfig')): |
| 115 | return |
| 116 | |
| 117 | with open(os.path.join(dist_dir, 'rt-thread/Kconfig'), 'r') as f: |
| 118 | data = f.readlines() |
| 119 | with open(os.path.join(dist_dir, 'rt-thread/Kconfig'), 'w') as f: |
| 120 | for line in data: |
| 121 | if line.find('Kconfig.utestcases') == -1: |
| 122 | f.write(line) |
| 123 | |
| 124 | def bsp_update_kconfig(dist_dir): |
| 125 | # change RTT_ROOT in Kconfig |