diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-02-20 08:12:47 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-02-20 08:12:47 +0000 |
commit | 292dc9c159bc037e810d28dfe16f9dbf8bba1ab1 (patch) | |
tree | 2a05feaa07849486bac090d67dc01017899ece84 /classes | |
parent | 7b838ffec04e1b9eea4b0bd17b72f518efa9b7de (diff) |
rootfs_ipk/package-index: created function to update deploy dirs and made package-index use it
Diffstat (limited to 'classes')
-rw-r--r-- | classes/rootfs_ipk.bbclass | 16 |
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 |