From: Clemens Gruber <clemens.gruber@pqgruber.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] boot/uboot: add support for custom DT name
Date: Fri, 15 Feb 2019 16:04:17 +0100 [thread overview]
Message-ID: <20190215150416.GA10817@archibald.tuxnet> (raw)
In-Reply-To: <20190203204950.1b9da757@windsurf>
Hi Thomas,
On Sun, Feb 03, 2019 at 08:49:50PM +0100, Thomas Petazzoni wrote:
> Hello Clemens, Kostya,
>
> On Mon, 24 Dec 2018 17:59:31 +0100
> Clemens Gruber <clemens.gruber@pqgruber.com> wrote:
>
> > They solve different problems.
> >
> > The reason for the EXT_DTB patch was to allow passing pre-built dtbs
> > with metadata used for verified boot in U-Boot.
> > (It's a simple device tree blob which stores the public key for the FIT
> > image with the kernel, initrd etc. and is generated by U-Boot mkimage)
> >
> > Matthew Weber suggested alternatives like appending this blob to
> > uboot.bin or decompiling the dtb and including the resulting dts via
> > BR2_TARGET_UBOOT_CUSTOM_DTS_PATH.
> >
> > Afaik, DEVICE_TREE is for user-specified "normal" DTs, e.g. for
> > configuration sharing / to override CONFIG_DEFAULT_DEVICE_TREE.
> > EXT_DTB is used for these extra DT blobs in verified boot scenarios.
>
> I thought a bit about this. U-Boot in fact has tons of environment
> variables to tweak stuff. Instead of adding explicit options for each
> of them, perhaps we should simply add an option that allows to pass
> arbitrary environment variables to the U-Boot build. Something long the
> lines of:
>
> config BR2_TARGET_UBOOT_CUSTOM_ENVVARS
> string "additional environment variables"
> help
> ...
>
> UBOOT_MAKE_OPTS += $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_ENVVARS))
>
> Not only this would allow to support more than EXT_DTB and DEVICE_TREE,
> but other variables. In addition, what worries me about EXT_DTB and
> DEVICE_TREE as individual options is that the semantic is hard to
> explain. Both are device trees, but they don't serve the same purpose.
>
> Thoughts ?
Sounds good to me! And it's future-proof.
Thanks,
Clemens
prev parent reply other threads:[~2019-02-15 15:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-24 13:19 [Buildroot] [PATCH] boot/uboot: add support for custom DT name kostap at marvell.com
2018-12-24 13:47 ` Thomas Petazzoni
2018-12-24 13:56 ` [Buildroot] [EXT] " Kostya Porotchkin
2018-12-24 16:59 ` [Buildroot] " Clemens Gruber
2019-02-03 19:49 ` Thomas Petazzoni
2019-02-15 15:04 ` Clemens Gruber [this message]
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=20190215150416.GA10817@archibald.tuxnet \
--to=clemens.gruber@pqgruber.com \
--cc=buildroot@busybox.net \
/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