diff options
author | Richard Purdie <richard@openedhand.com> | 2007-09-05 07:53:21 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-09-05 07:53:21 +0000 |
commit | 763dc8a90934e74feab6959917fa913dc6568956 (patch) | |
tree | bc684c584856a50dd34ee9252f9cdd37c6302b03 /meta/classes | |
parent | c518632b24e0a05d7e8c417bcf615793b66c5ec4 (diff) | |
download | poky-763dc8a90934e74feab6959917fa913dc6568956.tar.gz |
package_ipk.bbclass: Split ipk deploy directory by PACKAGE_ARCH (from OE)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2692 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/package_ipk.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index 9e654aac5e..06b161389f 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass | |||
@@ -101,6 +101,10 @@ package_generate_ipkg_conf () { | |||
101 | echo "arch $arch $priority" >> ${IPKGCONF_TARGET} | 101 | echo "arch $arch $priority" >> ${IPKGCONF_TARGET} |
102 | echo "arch ${BUILD_ARCH}-$arch-sdk $priority" >> ${IPKGCONF_SDK} | 102 | echo "arch ${BUILD_ARCH}-$arch-sdk $priority" >> ${IPKGCONF_SDK} |
103 | priority=$(expr $priority + 5) | 103 | priority=$(expr $priority + 5) |
104 | if [ -e ${DEPLOY_DIR_IPK}/$arch/Packages ] ; then | ||
105 | echo "src oe-$arch file:${DEPLOY_DIR_IPK}/$arch" >> ${IPKGCONF_TARGET} | ||
106 | echo "src oe-$arch file:${DEPLOY_DIR_IPK}/$arch" >> ${IPKGCONF_SDK} | ||
107 | fi | ||
104 | done | 108 | done |
105 | } | 109 | } |
106 | 110 | ||
@@ -117,6 +121,9 @@ python do_package_ipk () { | |||
117 | if not outdir: | 121 | if not outdir: |
118 | bb.error("DEPLOY_DIR_IPK not defined, unable to package") | 122 | bb.error("DEPLOY_DIR_IPK not defined, unable to package") |
119 | return | 123 | return |
124 | |||
125 | arch = bb.data.getVar('PACKAGE_ARCH', d, 1) | ||
126 | outdir = "%s/%s" % (outdir, arch) | ||
120 | bb.mkdirhier(outdir) | 127 | bb.mkdirhier(outdir) |
121 | 128 | ||
122 | dvar = bb.data.getVar('D', d, 1) | 129 | dvar = bb.data.getVar('D', d, 1) |