summaryrefslogtreecommitdiff
path: root/classes/rootfs_ipk.bbclass
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-02-20 08:12:47 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-02-20 08:12:47 +0000
commit292dc9c159bc037e810d28dfe16f9dbf8bba1ab1 (patch)
tree2a05feaa07849486bac090d67dc01017899ece84 /classes/rootfs_ipk.bbclass
parent7b838ffec04e1b9eea4b0bd17b72f518efa9b7de (diff)
rootfs_ipk/package-index: created function to update deploy dirs and made package-index use it
Diffstat (limited to 'classes/rootfs_ipk.bbclass')
-rw-r--r--classes/rootfs_ipk.bbclass16
1 files changed, 11 insertions, 5 deletions
diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
index 6fc7d8d133..fdd42ee429 100644
--- a/classes/rootfs_ipk.bbclass
+++ b/classes/rootfs_ipk.bbclass
@@ -13,10 +13,8 @@ IPKG_ARGS = "-f ${T}/ipkg.conf -o ${IMAGE_ROOTFS}"
PACKAGE_INSTALL += "ipkg ipkg-collateral"
-fakeroot rootfs_ipk_do_rootfs () {
+rootfs_ipk_do_indexes () {
set -x
-
- mkdir -p ${IMAGE_ROOTFS}/dev
ipkgarchs="${PACKAGE_ARCHS}"
@@ -33,14 +31,22 @@ fakeroot rootfs_ipk_do_rootfs () {
fi
fi
done
+}
+
+fakeroot rootfs_ipk_do_rootfs () {
+ set -x
+ rootfs_ipk_do_indexes
+
+ mkdir -p ${IMAGE_ROOTFS}/dev
mkdir -p ${T}
- priority=1
#Add deploy/ipk as well for backward compat
echo "src oe file:${DEPLOY_DIR_IPK}" > ${T}/ipkg.conf
+ ipkgarchs="${PACKAGE_ARCHS}"
- for arch in $ipkgarchs; do
+ priority=1
+ for arch in $ipkgarchs; do
echo "arch $arch $priority" >> ${T}/ipkg.conf
priority=$(expr $priority + 5)
if [ -e ${DEPLOY_DIR_IPK}/$arch/Packages ] ; then