diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-05-02 00:24:12 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-05-05 15:05:55 +0100 |
commit | 84c2bb3f0570c45887f3b04136c86ad78e29c697 (patch) | |
tree | 87cb81d903b5868b9b3e2631374b7f6e95369295 /classes | |
parent | 1b9f9a1625d0fc373462474de220a9786244e8c1 (diff) |
cross/staging.bbclass: Make sure .la files get mangled and add extra mangling for problematic cross paths
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/cross.bbclass | 9 | ||||
-rw-r--r-- | classes/staging.bbclass | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/classes/cross.bbclass b/classes/cross.bbclass index f95144cfcb..70178b2a77 100644 --- a/classes/cross.bbclass +++ b/classes/cross.bbclass @@ -67,6 +67,11 @@ sysroot_stage_all() { sysroot_stage_dir ${D} ${SYSROOT_DESTDIR} install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/ install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ - mv ${SYSROOT_DESTDIR}${target_base_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/ || true - mv ${SYSROOT_DESTDIR}${target_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ || true + sysroot_stage_libdir ${SYSROOT_DESTDIR}${target_base_libdir} ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir} + sysroot_stage_libdir ${SYSROOT_DESTDIR}${target_libdir} ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir} } + +# +# Cross .la files have more path issues we have to correct +SYSROOTEXTRALIBDIRSED = '-e "/^libdir=/s,.*,libdir=${STAGING_DIR_TARGET}${target_libdir},g"' + diff --git a/classes/staging.bbclass b/classes/staging.bbclass index a81ea865ea..e80644961c 100644 --- a/classes/staging.bbclass +++ b/classes/staging.bbclass @@ -38,6 +38,7 @@ sysroot_stage_dir() { fi } +SYSROOTEXTRALIBDIRSED ?= "" sysroot_stage_libdir() { src="$1" dest="$2" @@ -52,6 +53,7 @@ sysroot_stage_libdir() { sed -e 's/^installed=yes$/installed=no/' \ -e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${STAGING_LIBDIR}/\1,g' \ -e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${STAGING_LIBDIR},g" \ + ${SYSROOTEXTRALIBDIRSED} \ -i $src/$i done sysroot_stage_dir $src $dest |