]> code.ossystems Code Review - openembedded-core.git/commitdiff
staging: relocate *.la paths in destination dirs
authorDongxiao Xu <dongxiao.xu@intel.com>
Thu, 13 Jan 2011 13:54:25 +0000 (21:54 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Jan 2011 22:10:11 +0000 (22:10 +0000)
Keep the la files in source directories unchanged,
and do relocation in destination directories (sysroot-destdir).

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
meta/classes/staging.bbclass

index 843256545f2c9f78dc297b57492e0337fcb63509..a7f3258b4a62a4b263f3543f6bb9bd8f2275035b 100644 (file)
@@ -25,8 +25,10 @@ sysroot_stage_libdir() {
        src="$1"
        dest="$2"
 
+       sysroot_stage_dir $src $dest
+
        olddir=`pwd`
-       cd $src
+       cd $dest
        las=$(find . -name \*.la -type f)
        cd $olddir
        echo "Found la files: $las"              
@@ -36,9 +38,8 @@ sysroot_stage_libdir() {
                    -e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${STAGING_LIBDIR}/\1,g' \
                    -e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${STAGING_LIBDIR},g" \
                    -e "/^dependency_libs=/s,\([[:space:]']\)${base_libdir},\1${STAGING_DIR_HOST}${base_libdir},g" \
-                   -i $src/$i
+                   -i $dest/$i
        done
-       sysroot_stage_dir $src $dest
 }
 
 sysroot_stage_dirs() {