mirror of https://github.com/RTEMS/rtems.git
wscript: add dtc command to compile dts files
Enables building FDT files during compilation. Updates #5136
This commit is contained in:
parent
296d3872ff
commit
50e801531e
8
wscript
8
wscript
|
|
@ -510,6 +510,14 @@ class Item(object):
|
|||
bld(rule=run, source=source, target=target)
|
||||
return target
|
||||
|
||||
def dtc(self, bld, source, outdir):
|
||||
path, base = os.path.split(source)
|
||||
root, ext = os.path.splitext(base)
|
||||
target = os.path.join(outdir, root + ".dtb")
|
||||
bld(rule="${DTC} -I dts -O dtb -o ${TGT} ${SRC} > ${TGT}",
|
||||
source=source, target=target)
|
||||
return target
|
||||
|
||||
def bin2c(self, bld, source, name=None, target=None):
|
||||
|
||||
def run(task):
|
||||
|
|
|
|||
Loading…
Reference in New Issue