From 50e801531e8cdfed89fb5726fe5aba7f8a2727cc Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Wed, 20 May 2026 18:53:59 -0600 Subject: [PATCH] wscript: add dtc command to compile dts files Enables building FDT files during compilation. Updates #5136 --- wscript | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wscript b/wscript index fc9a2d925b..c34ad5778d 100755 --- a/wscript +++ b/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):