core: sanitize RPATH in target tree before copying the overlay
authorWolfgang Grandegger <wg@grandegger.com>
Thu, 20 Jul 2017 14:35:16 +0000 (16:35 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 20 Jul 2017 20:47:04 +0000 (22:47 +0200)
commit5f4ca518094f7690536074246ab765f36a213783
tree4ddbb7c17d83eb7fdf26acdf5d65024277b65dcd
parentb972b108f47c894626452c6f96e5ef1524795db1
core: sanitize RPATH in target tree before copying the overlay

We sanitize the RPATH of ELF files in the target tree to deal
with stupid packages that don't correctly use --prefix/DESTDIR
and that end up putting the full absolute build-time directory
in the RPATH.

We do it before copying the overlay and calling the post-build
script. The user is completely responsible for what happens
in the last two steps, and it should never be touched by us.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Makefile