Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [RFC PATCH 0/9] Make the buildroot toolchain relocatable
@ 2017-03-03 14:18 Wolfgang Grandegger
  2017-03-03 14:18 ` [Buildroot] [RFC PATCH 1/9] package/patchelf: use a recent version and add "--make-rpath-relative" patch Wolfgang Grandegger
                   ` (8 more replies)
  0 siblings, 9 replies; 36+ messages in thread
From: Wolfgang Grandegger @ 2017-03-03 14:18 UTC (permalink / raw)
  To: buildroot

Hello,

this is a RFC patch series to make the buildroot toolchain relocatable.
It's based on Samuel's related patch series but it now uses a patched
version of patchelf to sanitize the RPATH in the ELF files of the "target",
"sysroot" and "host" tree. Actually "patchelf --make-rpath-relative" does
the job. The idea is to get that patch mainlined but first I would like to
get some feedback here.

Furthermore it creates the script "relocate-toolchain.sh" in "host/usr"
allowing to relocate the toolchain after it has been moved to a new
location. It replaces the old path with the new one in all text files
identified by "file --mime-type".

Things not yet addressed:

- "make toolchain" creates a toolchain tree which still has references
  to the build system (in ELF and text files).  

Wolfgang.

Samuel Martin (3):
  support/scripts: add fix-rpath script to sanitize the rpath
  core: sanitize HOST_DIR at the very end of the build
  core: add {TARGET, STAGING}_SANITIZE_RPATH_HOOK to
    TARGET_FINALIZE_HOOKS

Wolfgang Grandegger (6):
  package/patchelf: use a recent version and add "--make-rpath-relative"
    patch
  support/scripts: add create-relocation-script for toolchain relocation
  core: create relocate-toolchain.sh in HOST_DIR/usr at the end of the
    build
  external-toolchain: check if a buildroot toolchain has already been
    relocated
  support/scripts: check-host-rpath now handles $ORIGIN as well
  support/scripts: check-host-rpath now uses patchelf to get the rpath

 Makefile                                           |  33 +++
 ...to-make-the-rpath-relative-within-a-speci.patch | 313 +++++++++++++++++++++
 package/patchelf/patchelf.hash                     |   2 +-
 package/patchelf/patchelf.mk                       |   6 +-
 support/scripts/check-host-rpath                   |  14 +-
 support/scripts/create-relocation-script           |  72 +++++
 support/scripts/fix-rpath                          | 106 +++++++
 toolchain/helpers.mk                               |  14 +
 .../toolchain-external/pkg-toolchain-external.mk   |   1 +
 9 files changed, 547 insertions(+), 14 deletions(-)
 create mode 100644 package/patchelf/0001-Add-option-to-make-the-rpath-relative-within-a-speci.patch
 create mode 100755 support/scripts/create-relocation-script
 create mode 100755 support/scripts/fix-rpath

-- 
1.9.1

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2017-03-17 22:09 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-03 14:18 [Buildroot] [RFC PATCH 0/9] Make the buildroot toolchain relocatable Wolfgang Grandegger
2017-03-03 14:18 ` [Buildroot] [RFC PATCH 1/9] package/patchelf: use a recent version and add "--make-rpath-relative" patch Wolfgang Grandegger
2017-03-04 11:26   ` Arnout Vandecappelle
2017-03-04 15:16     ` Wolfgang Grandegger
2017-03-05 23:13       ` Arnout Vandecappelle
2017-03-06  8:42         ` Wolfgang Grandegger
2017-03-06 12:40           ` Arnout Vandecappelle
2017-03-06 13:57             ` Wolfgang Grandegger
2017-03-03 14:18 ` [Buildroot] [RFC PATCH 2/9] support/scripts: add fix-rpath script to sanitize the rpath Wolfgang Grandegger
2017-03-03 14:48   ` Thomas Petazzoni
2017-03-03 16:39     ` Wolfgang Grandegger
2017-03-06  9:07       ` Wolfgang Grandegger
     [not found]         ` <30db8390-0a94-5449-0c5e-90263576be98@mind.be>
2017-03-07  9:13           ` Wolfgang Grandegger
     [not found]             ` <7524a67f-d19d-1023-262c-c0b7793e6066@mind.be>
2017-03-08  9:25               ` Wolfgang Grandegger
2017-03-12 20:53                 ` Arnout Vandecappelle
2017-03-12 21:10                   ` Wolfgang Grandegger
2017-03-13 17:08                     ` Arnout Vandecappelle
2017-03-14  7:36                       ` Wolfgang Grandegger
2017-03-04 11:39   ` Arnout Vandecappelle
2017-03-04 15:29     ` Wolfgang Grandegger
2017-03-03 14:18 ` [Buildroot] [RFC PATCH 3/9] core: sanitize HOST_DIR at the very end of the build Wolfgang Grandegger
2017-03-04 11:50   ` Arnout Vandecappelle
2017-03-03 14:18 ` [Buildroot] [RFC PATCH 4/9] core: add {TARGET, STAGING}_SANITIZE_RPATH_HOOK to TARGET_FINALIZE_HOOKS Wolfgang Grandegger
2017-03-03 14:18 ` [Buildroot] [RFC PATCH 5/9] support/scripts: add create-relocation-script for toolchain relocation Wolfgang Grandegger
2017-03-16 17:51   ` Arnout Vandecappelle
2017-03-17  7:10     ` Wolfgang Grandegger
2017-03-17 15:50       ` Arnout Vandecappelle
2017-03-17 17:15         ` Wolfgang Grandegger
2017-03-17 22:09           ` Arnout Vandecappelle
2017-03-03 14:18 ` [Buildroot] [RFC PATCH 6/9] core: create relocate-toolchain.sh in HOST_DIR/usr at the end of the build Wolfgang Grandegger
2017-03-03 14:18 ` [Buildroot] [RFC PATCH 7/9] external-toolchain: check if a buildroot toolchain has already been relocated Wolfgang Grandegger
2017-03-03 14:18 ` [Buildroot] [RFC PATCH 8/9] support/scripts: check-host-rpath now handles $ORIGIN as well Wolfgang Grandegger
2017-03-03 14:46   ` Thomas Petazzoni
2017-03-03 14:56     ` Wolfgang Grandegger
2017-03-03 17:12       ` Wolfgang Grandegger
2017-03-03 14:18 ` [Buildroot] [RFC PATCH 9/9] support/scripts: check-host-rpath now uses patchelf to get the rpath Wolfgang Grandegger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox