| 122 | f.write(line) |
| 123 | |
| 124 | def bsp_update_kconfig(dist_dir): |
| 125 | # change RTT_ROOT in Kconfig |
| 126 | if not os.path.isfile(os.path.join(dist_dir, 'Kconfig')): |
| 127 | return |
| 128 | |
| 129 | with open(os.path.join(dist_dir, 'Kconfig'), 'r') as f: |
| 130 | data = f.readlines() |
| 131 | with open(os.path.join(dist_dir, 'Kconfig'), 'w') as f: |
| 132 | for line in data: |
| 133 | if line.find('RTT_DIR') != -1 and line.find(':=') != -1: |
| 134 | line = 'RTT_DIR := rt-thread\n' |
| 135 | f.write(line) |
| 136 | |
| 137 | def bsp_update_kconfig_library(dist_dir): |
| 138 | # change RTT_ROOT in Kconfig |