mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 02:03:04 +01:00
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). (From OE-Core rev: 34d9f60a8c2e98fdacbb799af11ec015bc5700f4) Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
05e583ae84
commit
0c19c09335
@@ -206,9 +206,17 @@ do_package_write_ipk[noexec] = "1"
|
||||
do_package_write_rpm[noexec] = "1"
|
||||
do_package_write_deb[noexec] = "1"
|
||||
|
||||
BUILDDIRSTASH = "${WORKDIR}/stashed-builddir"
|
||||
inherit chrpath
|
||||
|
||||
python gcc_stash_builddir_fixrpaths() {
|
||||
# rewrite rpaths, breaking hardlinks as required
|
||||
process_dir("/", d.getVar("BUILDDIRSTASH"), d, break_hardlinks = True)
|
||||
}
|
||||
|
||||
BUILDDIRSTASH = "${WORKDIR}/stashed-builddir/build"
|
||||
do_gcc_stash_builddir[dirs] = "${B}"
|
||||
do_gcc_stash_builddir[cleandirs] = "${BUILDDIRSTASH}"
|
||||
do_gcc_stash_builddir[postfuncs] += "gcc_stash_builddir_fixrpaths"
|
||||
do_gcc_stash_builddir () {
|
||||
dest=${BUILDDIRSTASH}
|
||||
hardlinkdir . $dest
|
||||
|
||||
Reference in New Issue
Block a user