Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v7 5/9] core: sanitize RPATH in host tree at the very end of the build
Date: Thu, 20 Jul 2017 15:44:04 +0200	[thread overview]
Message-ID: <20170720154404.7533bf28@windsurf> (raw)
In-Reply-To: <4e228fa3-0126-6752-8a98-e17967b61fb3@mind.be>

Hello,

On Thu, 20 Jul 2017 01:51:53 +0200, Arnout Vandecappelle wrote:

>  This sanitization takes a non-trivial amount of time. For example, on a config
> with basically just systemd enabled, rebuilding the rootfs tarballs without the
> sanitization takes just 5 seconds. target+staging sanitization adds 10 seconds
> to that. host sanitization adds another 20 seconds. So globally we go from 5 to
> 34 seconds as the baseline time to rebuild anything.

This is indeed not good.

>  Also, we discussed this before (also with Thomas): I'm not so sure we want to
> do this as part of the normal build. It would make sense to me to have a new
> "sdk" target which is NOT a dependency of world, that should be called
> explicitly to get a relocatable toolchain. That already solves a big part of the
> time issue I mentioned above. But it also means we can later add other things to
> that sdk target, like creating a tarball of it. And anyway the host sanitization
> is only useful if you're actually going to move the sdk somewhere else.

Yes for "make sdk".

>  Also, host-finalize (or sdk) should depend on toolchain, and probably also on
> $(filter host-%,$(PACKAGES)). The latter is currently incomplete, but when we
> get around to selecting BR2_PACKAGE_HOST_* for all host packages, we will make
> sure that 'make sdk' really generates the complete sdk.

For the SDK, you also need to build all the target packages. The SDK
contains the sysroot (i.e STAGING_DIR), where the target packages
install libraries and headers.

Basically, sdk needs to depend on "world".

>  And finally, I think that the staging sanitization fits better here than in
> target-finalize. It has nothing to do with target, and the only reason that we
> do such sanitization is to make the sdk relocatable.

The sanitization in staging and target has nothing to do with making
the SDK relocatable. Why do you think it's related ?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  parent reply	other threads:[~2017-07-20 13:44 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-05 16:53 [Buildroot] [PATCH v7 0/9] Make the SDK relocatable Wolfgang Grandegger
2017-07-05 16:53 ` [Buildroot] [PATCH v7 1/9] package/patchelf: add patch for rpath sanitization under a root directory Wolfgang Grandegger
2017-07-19 21:08   ` Arnout Vandecappelle
2017-07-20  6:55     ` Wolfgang Grandegger
2017-07-20  7:55       ` Arnout Vandecappelle
2017-07-20  8:05         ` Wolfgang Grandegger
2017-07-19 23:17   ` Arnout Vandecappelle
2017-07-20  7:33     ` Wolfgang Grandegger
2017-07-05 16:53 ` [Buildroot] [PATCH v7 2/9] support/scripts: add fix-rpath script to sanitize the rpath Wolfgang Grandegger
2017-07-19 23:02   ` Arnout Vandecappelle
2017-07-20  7:31     ` Wolfgang Grandegger
2017-07-20  8:15       ` Arnout Vandecappelle
2017-07-20  9:03         ` Wolfgang Grandegger
2017-07-20 13:45           ` Arnout Vandecappelle
2017-07-20 14:08             ` Wolfgang Grandegger
2017-07-20 14:19               ` Arnout Vandecappelle
2017-07-20 16:50                 ` Wolfgang Grandegger
2017-07-20 17:05                   ` Arnout Vandecappelle
2017-07-05 16:53 ` [Buildroot] [PATCH v7 3/9] core: sanitize RPATH in staging tree at the end of target finalization Wolfgang Grandegger
2017-07-19 23:31   ` Arnout Vandecappelle
2017-07-05 16:53 ` [Buildroot] [PATCH v7 4/9] core: sanitize RPATH in target " Wolfgang Grandegger
2017-07-19 23:34   ` Arnout Vandecappelle
2017-07-20  8:25     ` Wolfgang Grandegger
2017-07-20  8:52       ` Arnout Vandecappelle
2017-07-05 16:53 ` [Buildroot] [PATCH v7 5/9] core: sanitize RPATH in host tree at the very end of the build Wolfgang Grandegger
2017-07-19 23:51   ` Arnout Vandecappelle
2017-07-20  8:40     ` Wolfgang Grandegger
2017-07-20  8:49       ` Arnout Vandecappelle
2017-07-20  9:15         ` Wolfgang Grandegger
2017-07-20 10:45           ` Arnout Vandecappelle
2017-07-20 13:45             ` Thomas Petazzoni
2017-07-20 13:44     ` Thomas Petazzoni [this message]
2017-07-20 13:58       ` Arnout Vandecappelle
2017-07-20 14:06         ` Thomas Petazzoni
2017-07-20 14:16           ` Arnout Vandecappelle
2017-07-05 16:53 ` [Buildroot] [PATCH v7 6/9] core: install relocation script and location at the " Wolfgang Grandegger
2017-07-19 23:58   ` Arnout Vandecappelle
2017-07-05 16:53 ` [Buildroot] [PATCH v7 7/9] external-toolchain: check if a buildroot SDK has already been relocated Wolfgang Grandegger
2017-07-20  0:12   ` Arnout Vandecappelle
2017-07-05 16:53 ` [Buildroot] [PATCH v7 8/9] support/scripts: relocate-sdk.sh now creates sdk-location in share/buildroot Wolfgang Grandegger
2017-07-20  0:13   ` Arnout Vandecappelle
2017-07-20 13:47   ` Thomas Petazzoni
2017-07-05 16:53 ` [Buildroot] [PATCH v7 9/9] package/qt5base: provide "qt.conf" to make "qmake" relocatable Wolfgang Grandegger
2017-07-20 13:49 ` [Buildroot] [PATCH v7 0/9] Make the SDK relocatable 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=20170720154404.7533bf28@windsurf \
    --to=thomas.petazzoni@free-electrons.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