diff options
author | Richard Purdie <richard@openedhand.com> | 2007-09-01 15:25:40 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-09-01 15:25:40 +0000 |
commit | f2ddfbb308b89d70167ac9c2b160935ad0feba27 (patch) | |
tree | 5d87973130a4aea09a88b2ad0d52945914307b36 /meta/classes/rootfs_ipk.bbclass | |
parent | 411cd0c6aeba3a8dd52ecd72d17291c020e59215 (diff) | |
download | poky-f2ddfbb308b89d70167ac9c2b160935ad0feba27.tar.gz |
classes: Sync with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2630 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/rootfs_ipk.bbclass')
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index c58b547742..3709f89743 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass | |||
@@ -10,15 +10,31 @@ do_rootfs[recrdeptask] += "do_package_write_ipk" | |||
10 | 10 | ||
11 | IPKG_ARGS = "-f ${T}/ipkg.conf -o ${IMAGE_ROOTFS}" | 11 | IPKG_ARGS = "-f ${T}/ipkg.conf -o ${IMAGE_ROOTFS}" |
12 | 12 | ||
13 | fakeroot rootfs_ipk_do_rootfs () { | 13 | rootfs_ipk_do_indexes () { |
14 | set -x | 14 | set -x |
15 | 15 | ||
16 | mkdir -p ${IMAGE_ROOTFS}/dev | 16 | ipkgarchs="${PACKAGE_ARCHS}" |
17 | 17 | ||
18 | if [ -z "${DEPLOY_KEEP_PACKAGES}" ]; then | 18 | if [ -z "${DEPLOY_KEEP_PACKAGES}" ]; then |
19 | touch ${DEPLOY_DIR_IPK}/Packages | 19 | touch ${DEPLOY_DIR_IPK}/Packages |
20 | ipkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK} | 20 | ipkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK} |
21 | fi | 21 | fi |
22 | |||
23 | for arch in $ipkgarchs; do | ||
24 | if [ -z "${DEPLOY_KEEP_PACKAGES}" ]; then | ||
25 | if [ -e ${DEPLOY_DIR_IPK}/$arch/ ] ; then | ||
26 | touch ${DEPLOY_DIR_IPK}/$arch/Packages | ||
27 | ipkg-make-index -r ${DEPLOY_DIR_IPK}/$arch/Packages -p ${DEPLOY_DIR_IPK}/$arch/Packages -l ${DEPLOY_DIR_IPK}/$arch/Packages.filelist -m ${DEPLOY_DIR_IPK}/$arch/ | ||
28 | fi | ||
29 | fi | ||
30 | done | ||
31 | } | ||
32 | |||
33 | fakeroot rootfs_ipk_do_rootfs () { | ||
34 | set -x | ||
35 | |||
36 | rootfs_ipk_do_indexes | ||
37 | |||
22 | mkdir -p ${T} | 38 | mkdir -p ${T} |
23 | echo "src oe file:${DEPLOY_DIR_IPK}" > ${T}/ipkg.conf | 39 | echo "src oe file:${DEPLOY_DIR_IPK}" > ${T}/ipkg.conf |
24 | ipkgarchs="${PACKAGE_ARCHS}" | 40 | ipkgarchs="${PACKAGE_ARCHS}" |