diff options
| author | Richard Purdie <richard@openedhand.com> | 2007-08-22 09:22:16 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2007-08-22 09:22:16 +0000 |
| commit | c09b63e6edf1ca4b1b64257c15f6b2f002fa8d8d (patch) | |
| tree | acabd424b8ebb5e67990bfe1d5fb433333ec4366 | |
| parent | 9bb91785c9ea3408df7dfaf3bc6ac421afcb328e (diff) | |
| download | poky-c09b63e6edf1ca4b1b64257c15f6b2f002fa8d8d.tar.gz | |
meta-toolchain: Adjust after pkgdata changes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2536 311d38ba-8fff-0310-9ca6-ca027cbcb966
| -rw-r--r-- | meta/packages/meta/meta-toolchain.bb | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/meta/packages/meta/meta-toolchain.bb b/meta/packages/meta/meta-toolchain.bb index 652eb25371..1a1bde46c0 100644 --- a/meta/packages/meta/meta-toolchain.bb +++ b/meta/packages/meta/meta-toolchain.bb | |||
| @@ -37,11 +37,12 @@ EOF | |||
| 37 | src oe file:${DEPLOY_DIR_IPK} | 37 | src oe file:${DEPLOY_DIR_IPK} |
| 38 | EOF | 38 | EOF |
| 39 | ipkgarchs="${PACKAGE_ARCHS}" | 39 | ipkgarchs="${PACKAGE_ARCHS}" |
| 40 | priority=1 | 40 | priority=1 |
| 41 | for arch in $ipkgarchs; do | 41 | for arch in $ipkgarchs; do |
| 42 | echo "arch $arch $priority" >> ${SDK_DIR}/ipkg-target.conf | 42 | echo "arch $arch $priority" >> ${SDK_DIR}/ipkg-target.conf |
| 43 | echo "arch ${BUILD_ARCH}-$arch-sdk $priority" >> ${SDK_DIR}/ipkg-host.conf | 43 | echo "arch ${BUILD_ARCH}-$arch-sdk $priority" >> ${SDK_DIR}/ipkg-host.conf |
| 44 | priority=$(expr $priority + 5) | 44 | priority=$(expr $priority + 5) |
| 45 | revipkgarchs="$arch $revipkgarchs" | ||
| 45 | done | 46 | done |
| 46 | 47 | ||
| 47 | rm -r ${SDK_OUTPUT} | 48 | rm -r ${SDK_OUTPUT} |
| @@ -57,8 +58,8 @@ EOF | |||
| 57 | cp -pPR ${SDK_OUTPUT}/${prefix}/usr/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS} | 58 | cp -pPR ${SDK_OUTPUT}/${prefix}/usr/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS} |
| 58 | rm -rf ${SDK_OUTPUT}/${prefix}/usr/ | 59 | rm -rf ${SDK_OUTPUT}/${prefix}/usr/ |
| 59 | 60 | ||
| 60 | cp -pPR ${SDK_OUTPUT}/${prefix}/lib/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib | 61 | cp -pPR ${SDK_OUTPUT}/${prefix}/lib/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib |
| 61 | rm -rf ${SDK_OUTPUT}/${prefix}/lib/* | 62 | rm -rf ${SDK_OUTPUT}/${prefix}/lib/* |
| 62 | 63 | ||
| 63 | for fn in `ls ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/`; do | 64 | for fn in `ls ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/`; do |
| 64 | if [ -h ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/$fn ]; then | 65 | if [ -h ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/$fn ]; then |
| @@ -78,8 +79,8 @@ EOF | |||
| 78 | chmod -R a+r ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/ | 79 | chmod -R a+r ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/ |
| 79 | find ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/ -type d | xargs chmod +x | 80 | find ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/ -type d | xargs chmod +x |
| 80 | 81 | ||
| 81 | echo 'GROUP ( libpthread.so.0 libpthread_nonshared.a )' > ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/libpthread.so | 82 | echo 'GROUP ( libpthread.so.0 libpthread_nonshared.a )' > ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/libpthread.so |
| 82 | echo 'GROUP ( libc.so.6 libc_nonshared.a )' > ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/libc.so | 83 | echo 'GROUP ( libc.so.6 libc_nonshared.a )' > ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/libc.so |
| 83 | 84 | ||
| 84 | # remove unwanted housekeeping files | 85 | # remove unwanted housekeeping files |
| 85 | mv ${SDK_OUTPUT}${libdir}/../${TARGET_SYS}/lib/ipkg/status ${SDK_OUTPUT}/${prefix}/package-status | 86 | mv ${SDK_OUTPUT}${libdir}/../${TARGET_SYS}/lib/ipkg/status ${SDK_OUTPUT}/${prefix}/package-status |
| @@ -94,17 +95,19 @@ EOF | |||
| 94 | mkdir -p ${SDK_OUTPUT}/${prefix}/pkgmaps/debian/ | 95 | mkdir -p ${SDK_OUTPUT}/${prefix}/pkgmaps/debian/ |
| 95 | mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/shlibs/ | 96 | mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/shlibs/ |
| 96 | for pkg in $target_pkgs ; do | 97 | for pkg in $target_pkgs ; do |
| 97 | for arch in $ipkgarchs; do | 98 | for arch in $revipkgarchs; do |
| 98 | if [ -e ${DEPLOY_DIR_IPK}/${pkg}_*_$arch.ipk ]; then | 99 | if [ -e ${DEPLOY_DIR_IPK}/${pkg}_*_$arch.ipk ]; then |
| 99 | echo "Found ${DEPLOY_DIR_IPK}/${pkg}_$arch.ipk" | 100 | echo "Found ${DEPLOY_DIR_IPK}/${pkg}_$arch.ipk" |
| 100 | cp ${DEPLOY_DIR_IPK}/${pkg}_*_$arch.ipk ${SDK_OUTPUT}/${prefix}/ipk/ | 101 | cp ${DEPLOY_DIR_IPK}/${pkg}_*_$arch.ipk ${SDK_OUTPUT}/${prefix}/ipk/ |
| 101 | orig_pkg=`ipkg-list-fields ${DEPLOY_DIR_IPK}/${pkg}_*_$arch.ipk | grep OE: | cut -d ' ' -f2` | 102 | orig_pkg=`ipkg-list-fields ${DEPLOY_DIR_IPK}/${pkg}_*_$arch.ipk | grep OE: | cut -d ' ' -f2` |
| 102 | cp ${STAGING_DIR}/pkgdata/$orig_pkg ${SDK_OUTPUT}/${prefix}/pkgdata/ | 103 | pkg_subdir=$arch${TARGET_VENDOR}${@['-' + bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d, 1) == ('' or 'custom')]} |
| 103 | subpkgs=`cat ${STAGING_DIR}/pkgdata/$orig_pkg | grep PACKAGES: | cut -b 10-` | 104 | mkdir -p ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/runtime |
| 105 | cp ${STAGING_DIR}/pkgdata/$pkg_subdir/$orig_pkg ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/ | ||
| 106 | subpkgs=`cat ${STAGING_DIR}/pkgdata/$pkg_subdir/$orig_pkg | grep PACKAGES: | cut -b 10-` | ||
| 104 | for subpkg in $subpkgs; do | 107 | for subpkg in $subpkgs; do |
| 105 | cp ${STAGING_DIR}/pkgdata/runtime/$subpkg ${SDK_OUTPUT}/${prefix}/pkgdata/runtime/ | 108 | cp ${STAGING_DIR}/pkgdata/$pkg_subdir/runtime/$subpkg ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/runtime/ |
| 106 | if [ -e ${STAGING_DIR}/pkgdata/runtime/$subpkg.packaged ];then | 109 | if [ -e ${STAGING_DIR}/pkgdata/$pkg_subdir/runtime/$subpkg.packaged ];then |
| 107 | cp ${STAGING_DIR}/pkgdata/runtime/$subpkg.packaged ${SDK_OUTPUT}/${prefix}/pkgdata/runtime/ | 110 | cp ${STAGING_DIR}/pkgdata/$pkg_subdir/runtime/$subpkg.packaged ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/runtime/ |
| 108 | fi | 111 | fi |
| 109 | if [ -e ${STAGING_DIR}/pkgmaps/debian/$subpkg ]; then | 112 | if [ -e ${STAGING_DIR}/pkgmaps/debian/$subpkg ]; then |
| 110 | cp ${STAGING_DIR}/pkgmaps/debian/$subpkg ${SDK_OUTPUT}/${prefix}/pkgmaps/debian/ | 113 | cp ${STAGING_DIR}/pkgmaps/debian/$subpkg ${SDK_OUTPUT}/${prefix}/pkgmaps/debian/ |
