Linux source tree has a scripts/dtc/include-prefixes directory[1] with
symlinks to each architecture's device tree directory. This is added[2]
to the include search path to allow sharing device tree includes between
different architectures, mainly arm and arm64 (e.g. same carrier board).

Do likewise in PTXdist to be able to build such kernel device trees.

[1]: https://elixir.bootlin.com/linux/v5.15/source/scripts/dtc/include-prefixes
[2]: https://elixir.bootlin.com/linux/v5.15/source/scripts/Makefile.lib#L222

Signed-off-by: Ahmad Fatoum <[email protected]>
---
 scripts/lib/ptxd_make_world_dtb.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/lib/ptxd_make_world_dtb.sh 
b/scripts/lib/ptxd_make_world_dtb.sh
index 20aaba9e90b7..7b7de6e0f4f2 100644
--- a/scripts/lib/ptxd_make_world_dtb.sh
+++ b/scripts/lib/ptxd_make_world_dtb.sh
@@ -41,6 +41,7 @@ ptxd_make_dtb() {
        -I"$(dirname "${dts}")" \
        -I${pkg_dir}/arch/${pkg_arch}/boot/dts \
        -I${pkg_dir}/arch/${pkg_arch}/boot/dts/include \
+       -I${pkg_dir}/scripts/dtc/include-prefixes \
        -I${pkg_dir}/drivers/of/testcase-data \
        -I${pkg_dir}/include \
        -undef -D__DTS__ -x assembler-with-cpp \
-- 
2.30.2


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to