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

Function dtb_to_dts

tools/dtc.py:47–52  ·  view source on GitHub ↗
(RTT_ROOT, dtb_name, dts_name = None, options = "")

Source from the content-addressed store, hash-verified

45 os.remove(path + tmp_dts)
46
47def dtb_to_dts(RTT_ROOT, dtb_name, dts_name = None, options = ""):
48 path = GetCurrentDir() + '/'
49 if dts_name == None:
50 dts_name = re.sub(r'\.dtb[o]*$', '.dts', dtb_name)
51 ret = os.system("dtc -I dtb -O dts {} {} -o {}".format(options, path + dtb_name, path + dts_name))
52 __check_dtc(ret)

Callers

nothing calls this directly

Calls 2

__check_dtcFunction · 0.85
GetCurrentDirFunction · 0.70

Tested by

no test coverage detected