diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-11-16 09:26:54 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-11-17 12:00:04 +0100 |
commit | f8d645cc990055961737047c6a958d4b2b06fe61 (patch) | |
tree | 291ffdffa9a0d779b885da1333259a41f6301d9c | |
parent | e89a7ffebed02da9f8aebed17d829edf2d8c0a1c (diff) | |
download | ptxdist-f8d645cc990055961737047c6a958d4b2b06fe61.tar.gz ptxdist-f8d645cc990055961737047c6a958d4b2b06fe61.tar.xz |
ptxd_make_dtb: support including device trees of other architectures
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 <a.fatoum@pengutronix.de>
Message-Id: <20211116082654.2231850-1-a.fatoum@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | scripts/lib/ptxd_make_world_dtb.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_dtb.sh b/scripts/lib/ptxd_make_world_dtb.sh index 20aaba9e9..7b7de6e0f 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 \ |