do_configure adds the EXTRA_DT_INCLUDES files to the DTS using the `/include/` syntax, while Yocto's devicetree.bbclass runs the GCC preprocessor over the resulting DTS file, leaving these include statements untouched (since the GCC preprocessor only follows syntax it recognizes). This patch converts the include syntax to `#include`, ensuring that the preprocessor processes it correctly, following and parsing all included files. This allows a user DTSI to use nested `#include` statements in overlays. e.g.: ```system-user.dtsi &axi_ad9083_rx_xcvr { sys-clk-select = <XCVR_QPLL>; out-clk-select = <XCVR_REFCLK_DIV2>; }; ``` Signed-off-by: Semyon Barenboym <semyon.barenb...@abra.co.il> --- meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb index fbe85f96..b9addddb 100644 --- a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb +++ b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb @@ -90,7 +90,7 @@ do_configure:append () { fi exit 1 fi - echo "/include/ \"$f\"" >> ${DT_FILES_PATH}/${BASE_DTS}.dts + echo "#include \"$f\"" >> ${DT_FILES_PATH}/${BASE_DTS}.dts done }
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#5549): https://lists.yoctoproject.org/g/meta-xilinx/message/5549 Mute This Topic: https://lists.yoctoproject.org/mt/111118474/21656 Group Owner: meta-xilinx+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-