diff options
author | Michael Lauer <mickey@vanille-media.de> | 2007-10-16 13:50:16 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2007-10-16 13:50:16 +0000 |
commit | 0410fbfe24f4afc65ef7859ae77ebb30ba0724bf (patch) | |
tree | 4974576294db081415f28a0c915d491034d5f85b /packages | |
parent | 3e5c600bfffcbfea69f1dc0ae2016a1b9169b413 (diff) |
meta-toolchain: only touch pkgconfig files if they're actually present
Diffstat (limited to 'packages')
-rw-r--r-- | packages/meta/meta-toolchain.bb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/packages/meta/meta-toolchain.bb b/packages/meta/meta-toolchain.bb index a734005819..261e9eac26 100644 --- a/packages/meta/meta-toolchain.bb +++ b/packages/meta/meta-toolchain.bb @@ -108,15 +108,18 @@ do_populate_sdk() { rm -f ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/*.la # fix pkgconfig data files - cd ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/pkgconfig - for f in *.pc ; do - sed -i 's%=/usr%=${prefix}/${TARGET_SYS}%g' "$f" - done - for f in *.pc ; do - sed -i 's%${STAGING_DIR}%/usr/local/${TARGET_ARCH}/oe%g' "$f" - done - - mkdir -p ${SDK_DEPLOY} + if [ -e ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/pkgconfig ]; then + cd ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/pkgconfig + for f in *.pc ; do + sed -i 's%=/usr%=${prefix}/${TARGET_SYS}%g' "$f" + done + for f in *.pc ; do + sed -i 's%${STAGING_DIR}%/usr/local/${TARGET_ARCH}/oe%g' "$f" + done + fi + + # package it up + mkdir -p ${SDK_DEPLOY} cd ${SDK_OUTPUT} fakeroot tar cfj ${SDK_DEPLOY}/${DISTRO}-${DISTRO_VERSION}-${TARGET_ARCH}-toolchain.tar.bz2 . } |