mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ptxd_make_dtb: support including device trees of other architectures
@ 2021-11-16  8:26 Ahmad Fatoum
  2021-11-26 14:35 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2021-11-16  8:26 UTC (permalink / raw)
  To: ptxdist; +Cc: Ahmad Fatoum

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>
---
 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
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] ptxd_make_dtb: support including device trees of other architectures
  2021-11-16  8:26 [ptxdist] [PATCH] ptxd_make_dtb: support including device trees of other architectures Ahmad Fatoum
@ 2021-11-26 14:35 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-11-26 14:35 UTC (permalink / raw)
  To: ptxdist; +Cc: Ahmad Fatoum

Thanks, applied as f8d645cc990055961737047c6a958d4b2b06fe61.

Michael

[sent from post-receive hook]

On Fri, 26 Nov 2021 15:35:15 +0100, Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> 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>
> 
> 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 \

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-26 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16  8:26 [ptxdist] [PATCH] ptxd_make_dtb: support including device trees of other architectures Ahmad Fatoum
2021-11-26 14:35 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox