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

Function modify_config

tools/ci/compile_bsp_with_drivers.py:76–82  ·  view source on GitHub ↗
(file_path, configs)

Source from the content-addressed store, hash-verified

74 return configs
75
76def modify_config(file_path, configs):
77 with open(file_path + "/rtconfig.h", 'a') as file:
78 for item in configs:
79 define1 = item.replace("CONFIG_BSP", "BSP")
80 define2 = item.replace("CONFIG_BSP", "RT")
81 file.write("#define " + define1 + "\n")
82 file.write("#define " + define2 + "\n")
83
84def recompile_bsp(dir):
85 logging.info("recomplie bsp: {}".format(dir))

Callers 1

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected