From: Robert Yang <liezhi.yang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 27/40] toolchain-shar-extract.sh: proper fix for additional env setup scripts
Date: Sun, 27 Dec 2015 23:14:35 -0800 [thread overview]
Message-ID: <feefaceb8a2bce8129aba82d4d93e725656ee075.1451286789.git.liezhi.yang@windriver.com> (raw)
In-Reply-To: <cover.1451286789.git.liezhi.yang@windriver.com>
From: Paul Eggleton <paul.eggleton@linux.intel.com>
buildtools-tarball uses a custom env setup script, which isn't named the
same as the default; thus unfortunately OE-Core revision
a36469c97c9cb335de1e95dea5141038f337df95 broke installation of
buildtools-tarball. Revert that and implement a more robust mechanism.
(From OE-Core master rev: 00e081b81ba8118959b724269ba9d18d42aba8a4)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
| 11 +++++++++++
meta/files/toolchain-shar-relocate.sh | 2 --
2 files changed, 11 insertions(+), 2 deletions(-)
--git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh
index 98b9f1c..6af37b7 100644
--- a/meta/files/toolchain-shar-extract.sh
+++ b/meta/files/toolchain-shar-extract.sh
@@ -169,9 +169,20 @@ echo "done"
printf "Setting it up..."
# fix environment paths
+real_env_setup_script=""
for env_setup_script in `ls $target_sdk_dir/environment-setup-*`; do
+ if grep -q 'OECORE_NATIVE_SYSROOT=' $env_setup_script; then
+ # Handle custom env setup scripts that are only named
+ # environment-setup-* so that they have relocation
+ # applied - what we want beyond here is the main one
+ # rather than the one that simply sorts last
+ real_env_setup_script="$env_setup_script"
+ fi
$SUDO_EXEC sed -e "s:@SDKPATH@:$target_sdk_dir:g" -i $env_setup_script
done
+if [ -n "$real_env_setup_script" ] ; then
+ env_setup_script="$real_env_setup_script"
+fi
@SDK_POST_INSTALL_COMMAND@
diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh
index d58e4ed..4ef2927 100644
--- a/meta/files/toolchain-shar-relocate.sh
+++ b/meta/files/toolchain-shar-relocate.sh
@@ -1,5 +1,3 @@
-#reset the env_setup_script value to the proper value
-env_setup_script=$target_sdk_dir/environment-setup-@REAL_MULTIMACH_TARGET_SYS@
# fix dynamic loader paths in all ELF SDK binaries
native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"')
dl_path=$($SUDO_EXEC find $native_sysroot/lib -name "ld-linux*")
--
1.7.9.5
next prev parent reply other threads:[~2015-12-28 7:15 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-28 7:14 [PATCH 00/40] [jethro] Consolidated pull Robert Yang
2015-12-28 7:14 ` [PATCH 01/40] libxcb: Add a workaround for gcc5 bug on mips Robert Yang
2015-12-28 7:14 ` [PATCH 02/40] icu: force arm mode Robert Yang
2015-12-28 7:14 ` [PATCH 03/40] guile, mailx, gcc, opensp, gstreamer1.0-libav, libunwind: disable thumb where it fails for qemuarm Robert Yang
2015-12-28 7:14 ` [PATCH 04/40] libunwind: fix build " Robert Yang
2015-12-28 7:14 ` [PATCH 05/40] gstreamer1.0-plugins-{base, good}: update PACKAGECONFIGs Robert Yang
2015-12-28 7:14 ` [PATCH 06/40] gstreamer1.0-plugins-bad: fix dependencies for uvch264 PACKAGECONFIG Robert Yang
2015-12-28 7:14 ` [PATCH 07/40] gstreamer1.0-plugins-good: fix PACKAGECONFIG for gudev and add one for v4l2 and libv4l2 Robert Yang
2016-01-15 8:21 ` Andreas Müller
2016-01-15 8:27 ` Robert Yang
2016-01-15 8:40 ` Robert Yang
2016-01-18 16:57 ` Martin Jansa
2015-12-28 7:14 ` [PATCH 08/40] gst-plugins-bad: add PACKAGECONFIGs for voamrwbenc, voaacenc, resindvd Robert Yang
2015-12-28 7:14 ` [PATCH 09/40] libsdl2: require GLES when building Wayland support Robert Yang
2015-12-28 7:14 ` [PATCH 10/40] package_manager.py: define info_dir and status_file when OPKGLIBDIR isn't the default Robert Yang
2015-12-28 7:14 ` [PATCH 11/40] texinfo: don't create dependency on INHERIT variable Robert Yang
2015-12-28 7:14 ` [PATCH 12/40] directfb.inc: force bfd linker for armv7a Robert Yang
2015-12-28 7:14 ` [PATCH 13/40] glibc: Backported a patch to fix glibc's bug(18589) Robert Yang
2015-12-28 7:14 ` [PATCH 14/40] openssl: sanity check that the bignum module is present Robert Yang
2015-12-28 7:14 ` [PATCH 15/40] uninative.bbclass: Choose the correct loader based on BUILD_ARCH Robert Yang
2015-12-28 7:14 ` [PATCH 16/40] classes/distrodata: split SRC_URI properly before determining type Robert Yang
2015-12-28 7:14 ` [PATCH 17/40] oeqa/selftest/devtool: fix test if build directory is not inside COREBASE Robert Yang
2015-12-28 7:14 ` [PATCH 18/40] oeqa/selftest/layerappend: " Robert Yang
2015-12-28 7:14 ` [PATCH 19/40] classes/metadata_scm: fix git errors showing up on non-git repositories Robert Yang
2015-12-28 7:14 ` [PATCH 20/40] classes/license: fix intermittent license collection warning Robert Yang
2015-12-28 7:14 ` [PATCH 21/40] classes/populate_sdk_ext: tidy up preparation log file writing Robert Yang
2015-12-28 7:14 ` [PATCH 22/40] classes/populate_sdk_ext: make it clear when SDK installation has failed Robert Yang
2015-12-28 7:14 ` [PATCH 23/40] classes/populate_sdk_ext: tweak reporting of workspace exclusion Robert Yang
2015-12-28 7:14 ` [PATCH 24/40] classes/populate_sdk_ext: fail if SDK_ARCH != BUILD_ARCH Robert Yang
2015-12-28 7:14 ` [PATCH 25/40] populate_sdk_ext.bbclass: Be more permissive on the name of the buildtools Robert Yang
2015-12-28 7:14 ` [PATCH 26/40] toolchain-shar-relocate: don't assume last state of env_setup_script is good Robert Yang
2015-12-28 7:14 ` Robert Yang [this message]
2015-12-28 7:14 ` [PATCH 28/40] scripts/gen-lockedsig-cache: improve output Robert Yang
2015-12-28 7:14 ` [PATCH 29/40] toolchain-shar-extract.sh: do not allow $ in paths for ext SDK Robert Yang
2015-12-28 7:14 ` [PATCH 30/40] devtool: include do_patch in SRCTREECOVEREDTASKS Robert Yang
2015-12-28 7:14 ` [PATCH 31/40] devtool: upgrade: fix removing other recipes from workspace on reset Robert Yang
2015-12-28 7:14 ` [PATCH 32/40] devtool: upgrade: fix updating PV and SRCREV Robert Yang
2015-12-28 7:14 ` [PATCH 33/40] devtool: upgrade: remove erroneous error when not renaming recipe Robert Yang
2015-12-28 7:14 ` [PATCH 34/40] devtool: upgrade: fetch remote repository before checking out new revision Robert Yang
2015-12-28 7:14 ` [PATCH 35/40] toolchain-scripts.bbclass: unset command_not_found_handle Robert Yang
2015-12-28 7:14 ` [PATCH 36/40] autotools: Allow recipe-individual configure scripts Robert Yang
2015-12-28 7:14 ` [PATCH 37/40] prelink: Fix various prelink issues on IA32, ARM, and MIPS Robert Yang
2015-12-28 7:14 ` [PATCH 38/40] gcc: Update default Power GCC settings to use secure-plt Robert Yang
2015-12-28 7:14 ` [PATCH 39/40] glibc: Fix ld.so / prelink interface for ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA Robert Yang
2015-12-28 7:14 ` [PATCH 40/40] cairo: fix license for cairo-script-interpreter Robert Yang
2016-01-12 5:32 ` [PATCH 00/40] [jethro] Consolidated pull Robert Yang
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=feefaceb8a2bce8129aba82d4d93e725656ee075.1451286789.git.liezhi.yang@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/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