[OE-core] [oe-core] classes: populate_sdk_base: Refine search for SDK env setup file

Marc Reilly marc at cpdesign.com.au
Sun Aug 12 08:48:42 UTC 2012


This fixes a relocation failure when installing SDKs built with
meta-toolchain-qte.
SDKs build with meta-toolchain-qte have a file named "environment-setup"
in them as well as the environment-setup-MACH-WHATEVER-BLAH file.
This patch changes the find name pattern so that only the appropriate
file is matched.

Signed-off-by: Marc Reilly <marc at cpdesign.com.au>
---
 meta/classes/populate_sdk_base.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 0d19741..60c67bd 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -154,7 +154,7 @@ echo "done"
 
 echo -n "Setting it up..."
 # fix environment paths
-env_setup_script=$(find $target_sdk_dir -name "environment-setup*")
+env_setup_script=$(find $target_sdk_dir -name "environment-setup-*")
 sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" -i $env_setup_script
 
 # fix dynamic loader paths in all ELF SDK binaries
-- 
1.7.7





More information about the Openembedded-core mailing list