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

Function bsp_update_kconfig

tools/mkdist.py:124–135  ·  view source on GitHub ↗
(dist_dir)

Source from the content-addressed store, hash-verified

122 f.write(line)
123
124def 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
137def bsp_update_kconfig_library(dist_dir):
138 # change RTT_ROOT in Kconfig

Callers 1

MkDistFunction · 0.85

Calls 3

openFunction · 0.50
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected