Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] boot/uboot: add option to define custom dependencies
Date: Mon, 27 Apr 2020 17:41:08 +0200	[thread overview]
Message-ID: <20200427174108.6f7f8e86@windsurf.home> (raw)
In-Reply-To: <44894d6d-ed79-9221-2838-5ce6971cb848@mind.be>

Hello,

On Mon, 27 Apr 2020 10:31:51 +0200
Arnout Vandecappelle <arnout@mind.be> wrote:

> > My opinion on that patch is that i am definitely not in favour of it. If
> > we go that route, then we would have to allow adding any such arbitrary
> > dependencies to a wide range of packages.  
> 
>  The key difference is that for U-Boot (and kernel) we don't just allow, but
> *expect* the user to specify some custom version. In that respect we differ
> wildly from almost all other projects (i.e. OpenWrt and yocto) that choose a
> single or very few kernel and U-Boot versions to work with.
> 
>  Because of this flexibility, we need to also allow stuff we consider ugly like
> custom git downloads and a custom directory (which we rejected but for which now
> I believe we really should have the option). So IMO this custom dependencies
> ugliness is the inevitable price we have to pay for that flexibility.

I agree.


> > So, I am definitely not in favour of adding such an option as the
> > proposed BR2_TARGET_UBOOT_CUSTOM_DEPENDENCIES.  
> 
> 
>  A few years ago, I was also of the opinion that new Config.in options should be
> treated with utmost suspicion. The main argument there is maintainability.
> However, "maintaining" a Config.in option is really not much of an effort. The
> .mk handling of it may be an effort, but in this case it's pretty simple as
> well. It would also be a problem if infra support was needed - but that's not
> the case here either.
> 
>  The only thing that I would like is a test of the functionality, because that's
> the main maintainance effort IMO: making sure that it doesn't break. In this
> case, the test is easy: we can just rewrite e.g. asus_tinker_rk3288_defconfig to
> set:
> 
> BR2_TARGET_UBOOT_NEEDS_DTC=y
> BR2_TARGET_UBOOT_CUSTOM_DEPENDENCIES="openssl"

Which should in fact be:

BR2_TARGET_UBOOT_CUSTOM_DEPENDENCIES="host-openssl"

so it's really not user-friendy it seems :-)

>  Bottom line: I'm in favour.

Thanks. Should I nevertheless introduce the PYLIBFDT_PYTHON3 and
PYELFTOOLS_PYTHON3 options, in addition to this ? Or do we for these
new use cases favor using only the CUSTOM_DEPENDENCIES solution ?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2020-04-27 15:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-25  0:06 [Buildroot] [PATCH] boot/uboot: add option to define custom dependencies Heiko Stuebner
2020-04-25 13:38 ` Thomas Petazzoni
2020-04-25 21:13   ` Yann E. MORIN
2020-04-25 21:22     ` Thomas Petazzoni
2020-04-25 21:31       ` Heiko Stübner
2020-04-25 21:45         ` Yann E. MORIN
2020-04-27  8:31     ` Arnout Vandecappelle
2020-04-27 15:41       ` Thomas Petazzoni [this message]
2020-04-27 16:59         ` Arnout Vandecappelle
     [not found]           ` <794007695.ejsOJfsjEF@diego>
2020-04-27 19:08             ` Thomas Petazzoni
2022-01-08 19:40 ` Thomas Petazzoni

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=20200427174108.6f7f8e86@windsurf.home \
    --to=thomas.petazzoni@bootlin.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