From: Michael Walle via buildroot <buildroot@buildroot.org>
To: "Arnout Vandecappelle" <arnout@mind.be>,
"Romain Naour" <romain.naour@smile.fr>,
"Edgar Bonet" <bonet@grenoble.cnrs.fr>,
"Buildroot development" <buildroot@buildroot.org>
Cc: "Chris Packham" <judge.packham@gmail.com>,
"Sergey Matyukevich" <geomatsi@gmail.com>,
"Kilian Zinnecker" <kilian.zinnecker@mail.de>
Subject: Re: [Buildroot] [PATCH v3 1/1] linux: make out-of-tree DTS work with newest kernels
Date: Wed, 22 Jan 2025 12:09:22 +0100 [thread overview]
Message-ID: <D78K00ISVHNK.L2HSLYUAUNIT@kernel.org> (raw)
In-Reply-To: <5de84d6d-dafb-432c-9308-0b8d7e93fdd3@mind.be>
[-- Attachment #1.1: Type: text/plain, Size: 2398 bytes --]
On Wed Jan 22, 2025 at 11:52 AM CET, Arnout Vandecappelle wrote:
>
>
> On 22/01/2025 11:40, Romain Naour wrote:
> [snip]
> > The problem is that we define the path to the OOT dts file like this:
> >
> > BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/acmesystems/acqua-a5/at91-sama5d3_acqua.dts"
> >
> > So we can't extract the vendor prefix from it even if it would look like this:
> >
> > BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/acmesystems/acqua-a5/dts/microchip/at91-sama5d3_acqua.dts"
> >
> > Note: the vendor prefix is not always one sub-directory:
> >
> > arch/arm/boot/dts/ti/omap/dra7.dtsi
> > arch/arm64/boot/dts/exynos/google/gs101.dtsi
> >
> > We probably need a new option to provide something like a dts "overlay"
> > BR2_LINUX_KERNEL_CUSTOM_DTS_OVERLAY (similar to BR2_ROOTFS_OVERLAY) to copy a
> > dts directory directly to $(LINUX_ARCH_PATH)/boot/dts/
> >
> > BR2_LINUX_KERNEL_CUSTOM_DTS_OVERLAY="board/acmesystems/acqua-a5/dts"
> >
> > board/acmesystems/acqua-a5/dts/
> > └── microchip
> > └── at91-sama5d3_acqua.dts
> >
> > Doing so, the BR2_LINUX_KERNEL_CUSTOM_DTS_PATH should be deprecated.
>
> Alternatively, we can define an additional config variable
> BR2_LINUX_KERNEL_CUSTOM_DTS_DIRECTORY that contains the subdirectory to which
> the custom DTS is copied. So `microchip`, `ti/omap`, or `exynos/google`.
>
> Disadvantage: we can't support multiple dts from different vendors.
As explained earlier, I'd aim for a solution which works in any
case.
> Not sure
> if that is going to be an actual use case, but people do crazy things... But I
> think for the common case (of only a single or a low number of DTSes that all
> use the same CPU (family) so are in the same directory) it works well and is
> much easier for the user.
The kernel supports multi (sub) arch. I'd prefer it if buildroot
would support the same. Think of an OEM who wants to build common
generic image shared between all its boards.
Esp. if it would be as 'easy' as splitting the current configuration
into a config for "/path/to/dts/files" and "list/of/board.dts
or/list/of/overlay.dtso". The later could also be the same option as
used for the in-tree kernel dts list. From a POV that might even be
easier. Also, the first option (which Romain calls _OVERLAY) could
also be a list, no?
-michael
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 297 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2025-01-22 11:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-03 14:33 [Buildroot] [PATCH v3 1/1] linux: make out-of-tree DTS work with newest kernels Edgar Bonet
2025-01-03 22:07 ` Romain Naour via buildroot
2025-01-04 7:21 ` Kilian Zinnecker via buildroot
2025-01-05 21:11 ` Michael Walle via buildroot
2025-01-22 10:40 ` Romain Naour via buildroot
2025-01-22 10:52 ` Arnout Vandecappelle via buildroot
2025-01-22 11:06 ` Romain Naour via buildroot
2025-01-22 11:09 ` Michael Walle via buildroot [this message]
2025-01-22 19:48 ` Edgar Bonet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D78K00ISVHNK.L2HSLYUAUNIT@kernel.org \
--to=buildroot@buildroot.org \
--cc=arnout@mind.be \
--cc=bonet@grenoble.cnrs.fr \
--cc=geomatsi@gmail.com \
--cc=judge.packham@gmail.com \
--cc=kilian.zinnecker@mail.de \
--cc=mwalle@kernel.org \
--cc=romain.naour@smile.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox