]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_base: Update extraction script for multilibs
authorMark Hatle <mark.hatle@windriver.com>
Wed, 26 Sep 2012 23:02:06 +0000 (18:02 -0500)
committerSaul Wold <sgw@linux.intel.com>
Fri, 26 Oct 2012 16:12:15 +0000 (09:12 -0700)
When multilibs are enabled, there will be more then one environment
file created.  We need to be sure to process each environment file.
The next function can simply use the last environment file processed
to get the magic value(s) that it requires.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/populate_sdk_base.bbclass

index a914a2c2734620ed114a479d5008f1a1849bb8c4..8258224019f56c602960024ef8bc66ad98488c1e 100644 (file)
@@ -160,8 +160,9 @@ echo "done"
 
 printf "Setting it up..."
 # fix environment paths
-env_setup_script=$(find $target_sdk_dir/ -name "environment-setup-${REAL_MULTIMACH_TARGET_SYS}")
-sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" -i $env_setup_script
+for env_setup_script in `ls $target_sdk_dir/environment-setup-*`; do
+  sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" -i $env_setup_script
+done
 
 # fix dynamic loader paths in all ELF SDK binaries
 native_sysroot=$(cat $env_setup_script |grep OECORE_NATIVE_SYSROOT|cut -d'=' -f2|tr -d '"')