<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I have a use-case where I need to compile the dtb using the kernel build system, and the kernel&#39;s device tree compiler:<br></div>- In dylan, dtc is outdated and can not compile our dts, as that needs additional include files. dtc in dylan does not understand the include path option -i, although the dtc that comes with linux-3.4.x does support it.<br>
</div>- Irrespective of the version of the dtc (dylan vs. master), the kernel build system supports running dtsp files through CPP, which we also need<br><br></div>The attached patch changes linux-dtb.inc to support such a use-case<br>
<br>If KERNEL_DEVICETREE points to file(s) in arch/${ARCH}/boot/dts, instead of full paths (relative to ${S}), kbuild is used, otherwise behaviour is unchanged.<br><br></div><div>An alternative would be to copy what the kernel&#39;s Makefile is doing, but that seems pointless, and still requires updating dtc to something more recent in dylan.<br>
<br><br></div>What do you think about attached (incomplete) patch?<br><br><br></div>Cheers,<br>Andre&#39;<br></div>