[oe-commits] [openembedded-core] 01/02: gcc-cross.inc: Process binaries in build dir to be relocatable

git at git.openembedded.org git at git.openembedded.org
Mon Sep 9 15:47:59 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 6e482d142f52ecf3807574f86ac9b86231576701
Author: Nathan Rossi <nathan at nathanrossi.com>
AuthorDate: Tue Sep 10 01:27:34 2019 +1000

    gcc-cross.inc: Process binaries in build dir to be relocatable
    
    Process binaries within the build directory before stashing to be
    relocatable with ORIGIN relative rpaths. This corrects issues with
    rpaths being invalid when trying to use the binaries from an unstashed
    build directory (e.g. gcc-runtime).
    
    Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/gcc/gcc-cross.inc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index 95af6d8..3ba0b15 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -206,9 +206,16 @@ do_package_write_ipk[noexec] = "1"
 do_package_write_rpm[noexec] = "1"
 do_package_write_deb[noexec] = "1"
 
+inherit chrpath
+
+python gcc_stash_builddir_fixrpaths() {
+    process_dir("/", d.getVar("B"), d)
+}
+
 BUILDDIRSTASH = "${WORKDIR}/stashed-builddir"
 do_gcc_stash_builddir[dirs] = "${B}"
 do_gcc_stash_builddir[cleandirs] = "${BUILDDIRSTASH}"
+do_gcc_stash_builddir[prefuncs] += "gcc_stash_builddir_fixrpaths"
 do_gcc_stash_builddir () {
 	dest=${BUILDDIRSTASH}
 	hardlinkdir . $dest

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list