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: Sat, 25 Apr 2020 15:38:10 +0200	[thread overview]
Message-ID: <20200425153810.2e86813e@windsurf.home> (raw)
In-Reply-To: <20200425000629.2068191-1-heiko@sntech.de>

Hello Heiko,

On Sat, 25 Apr 2020 02:06:29 +0200
Heiko Stuebner <heiko@sntech.de> wrote:

> From: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
> 
> A custom uboot version my depend on additional unspecified packages
> to be built before the uboot build is attempted.
> 
> One example is an additional config fragment referencing things
> from other packages, so add an option similar to the config fragments
> where these can be defined.
> 
> Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>

Hm, this is interesting. Out of curiosity, what is the specific
case/issue you had ?

We already have a bunch of BR2_TARGET_UBOOT_NEEDS_xyz options:

config BR2_TARGET_UBOOT_NEEDS_DTC
config BR2_TARGET_UBOOT_NEEDS_PYLIBFDT
config BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS
config BR2_TARGET_UBOOT_NEEDS_OPENSSL
config BR2_TARGET_UBOOT_NEEDS_LZOP

and I just realized that we will need:

config BR2_TARGET_UBOOT_NEEDS_PYTHON3_PYLIBFDT
config BR2_TARGET_UBOOT_NEEDS_PYTHON3_PYELFTOOLS

indeed, as of U-Boot 2020.01, a number of Python scripts, including the
pylibfdt stuff, and binman, are now Python 3 only. We already have a
few build failures in the autobuilders due to this. And
http://patchwork.ozlabs.org/project/buildroot/patch/20200413171831.12079-1-vincent.stehle at laposte.net/
enables host-python3 to get around this, but I don't see how it can
work as it doesn't guarantee that host-python3 is built before U-Boot.

So perhaps we should get rid of all this craziness and have just this
BR2_TARGET_UBOOT_CUSTOM_DEPENDENCIES ?

Questions are:

 - Is this sufficiently user-friendly? It's already not necessary easy
   to know when one has to enable NEEDS_DTC, NEEDS_PYLIBFDT, etc. So if
   instead of that one has to know that host-dtc host-python host-swig,
   etc. have to be enabled.

 - How to not break too much backward compatibility. Either we do
   Config.in.legacy handling as we usually do. Or we keep them as
   hidden booleans and have compatibility logic in uboot.mk to add the
   proper dependencies.

Yann, Peter, Arnout, any opinion on this ?

Thanks,

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

  reply	other threads:[~2020-04-25 13:38 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 [this message]
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
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=20200425153810.2e86813e@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