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 2/2] allow build infrastructure to pick up installed ninja tool
Date: Tue, 7 May 2019 23:00:08 +0200	[thread overview]
Message-ID: <20190507230008.0b3c354f@windsurf> (raw)
In-Reply-To: <20190503131851.12315-2-norbert.lange@andritz.com>

Hello Norbert,

On Fri,  3 May 2019 15:18:51 +0200
Norbert Lange <nolange79@gmail.com> wrote:

> From: Norbert Lange <nolange79@gmail.com>
> 
> If a fitting ninja tool is detected it will be used,
> otherwise the tool will be built from source.
> 
> Replace the fixed dependencies to host-ninja,
> notably from the meson infrastructure.
> 
> Signed-off-by: Norbert Lange <nolange79@gmail.com>

Since host-meson cannot be changed to use the system-provided meson, as
discussed with Peter Seiderer on PATCH 1/2, I don't think it's really
worth doing the effort for host-ninja, which requires the same thing as
host-meson: a host Python interpreter.

I think the approaches to reduce the build time are:

 - Make sure we only need to build one of host-python or host-python3,
   and not both. This is what J?rg Krause is proposing in
   http://patchwork.ozlabs.org/patch/1047119/.

 - Or perhaps, try to go one step further, and see if we can use the
   system-provided Python instead of a Python built by Buildroot. But
   that would only work if the system provides Python 3, since Meson
   requires Python 3.

> diff --git a/support/dependencies/check-host-ninja.mk b/support/dependencies/check-host-ninja.mk
> new file mode 100644
> index 0000000000..6d89255ee5
> --- /dev/null
> +++ b/support/dependencies/check-host-ninja.mk
> @@ -0,0 +1,14 @@
> +# Set this to either 1.8.2 or higher, depending on the highest minimum
> +# version required by any of the packages bundled in Buildroot. If a
> +# package is bumped or a new one added, and it requires a higher
> +# version, our ninja infra will catch it and build its own.

I know this comment is in other .mk files in the same directory, but it
doesn't make any sense. There is no such thing as a "ninja infra" in
Buildroot, and there is nothing that will "catch it" and build its own.
If we forget to update BR2_NINJA_VERSION_MIN to the oldest Ninja
version that is acceptable by all packages using Ninja in Buildroot, we
will never notice until a user hits the problem.

Best regards,

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

  reply	other threads:[~2019-05-07 21:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-03 13:18 [Buildroot] [PATCH 1/2] allow build infrastructure to pick up installed meson tool Norbert Lange
2019-05-03 13:18 ` [Buildroot] [PATCH 2/2] allow build infrastructure to pick up installed ninja tool Norbert Lange
2019-05-07 21:00   ` Thomas Petazzoni [this message]
2019-05-08  9:49     ` Norbert Lange
2019-05-03 16:57 ` [Buildroot] [PATCH 1/2] allow build infrastructure to pick up installed meson tool Peter Seiderer
2019-05-03 19:21   ` Norbert Lange
2019-05-07 20:56   ` Thomas Petazzoni
2019-05-08  9:38     ` Norbert Lange

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=20190507230008.0b3c354f@windsurf \
    --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