summaryrefslogtreecommitdiff
path: root/packages/meta
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-06-11 12:33:12 +0000
committerKoen Kooi <koen@openembedded.org>2007-06-11 12:33:12 +0000
commit55c9ddab073ec7a7e404053861dd479f260688db (patch)
tree740a6e785f900d828b8683cf4748231e2cd834a6 /packages/meta
parentb919f2a98075a1de45cfd207cc6cb34dd24ffaea (diff)
meta-toolchain: apply some bits of #2393, still incomplete
Diffstat (limited to 'packages/meta')
-rw-r--r--packages/meta/meta-toolchain.bb24
1 files changed, 15 insertions, 9 deletions
diff --git a/packages/meta/meta-toolchain.bb b/packages/meta/meta-toolchain.bb
index 35dbe9f4cb..1fa80f7d6d 100644
--- a/packages/meta/meta-toolchain.bb
+++ b/packages/meta/meta-toolchain.bb
@@ -22,25 +22,31 @@ TARGET_INSTALL = "\
RDEPENDS = "${TARGET_INSTALL} ${HOST_INSTALL}"
-do_populate_sdk() {
- touch ${DEPLOY_DIR_IPK}/Packages
- ipkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK}
+sdk_ipk_do_indexes () {
+ set -ex
+ rootfs_ipk_do_indexes
+ set +ex
+}
+do_populate_sdk() {
+ sdk_ipk_do_indexes
rm -rf ${SDK_OUTPUT}
mkdir -p ${SDK_OUTPUT}
+ echo "Creating host.conf..."
+
cat <<EOF >${SDK_DIR}/ipkg-host.conf
-src oe file:${DEPLOY_DIR_IPK}
+src oe file:${DEPLOY_DIR_IPK}/${BUILD_ARCH}
arch ${BUILD_ARCH} 1
EOF
- cat <<EOF >${SDK_DIR}/ipkg-target.conf
-src oe file:${DEPLOY_DIR_IPK}
-EOF
- ipkgarchs="${PACKAGE_ARCHS}"
+ echo "done."
priority=1
for arch in $ipkgarchs; do
echo "arch $arch $priority" >> ${SDK_DIR}/ipkg-target.conf
- priority=$(expr $priority + 5)
+ priority=$(expr $priority + 5)
+ if [ -e ${DEPLOY_DIR_IPK}/$arch/Packages ] ; then
+ echo "src oe-$arch file:${DEPLOY_DIR_IPK}/$arch" >> ${SDK_DIR}/ipkg-target.conf
+ fi
done
rm -r ${SDK_OUTPUT}