diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-04 05:16:27 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-04 05:16:27 +0000 |
commit | be2102061cbcc0549fc5037b8241e08898a0c165 (patch) | |
tree | 38fc33e071152207048a343455645ca02b74cc4a | |
parent | bc996c3b46621a3c92bef16a47aba923e636bc82 (diff) |
Merge oe-devel@oe-devel.bkbits.net:packages
into odin.sc.ti.com:/home/kergoth/code/packages
2004/12/03 23:13:02-06:00 ti.com!kergoth
Improve the IPKG_ARCHS handling to make the recent zaurus-clamshells change actually behave.
BKrev: 41b1482baIFePMMgisigXJ3MQvMEeQ
-rw-r--r-- | classes/rootfs_ipk.oeclass | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/classes/rootfs_ipk.oeclass b/classes/rootfs_ipk.oeclass index 93124f660d..10c4fed119 100644 --- a/classes/rootfs_ipk.oeclass +++ b/classes/rootfs_ipk.oeclass @@ -32,22 +32,11 @@ real_do_rootfs () { ipkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK} mkdir -p ${T} echo "src oe file:${DEPLOY_DIR_IPK}" > ${T}/ipkg.conf - cat <<EOF >>${T}/ipkg.conf -arch all 1 -arch any 1 -arch noarch 1 -arch ${TARGET_ARCH} 10 -EOF - if [ "${TARGET_ARCH}" != "${PACKAGE_ARCH}" ]; then - echo "arch ${PACKAGE_ARCH} 15" >>${T}/ipkg.conf - fi - if [ ! -z ${MACHINE} ]; then - echo "arch ${MACHINE} 20" >>${T}/ipkg.conf - fi - for i in ${IPKG_ARCHS}; do - if [ $i != "all" ] && [ $i != "${TARGET_ARCH}" ] && [ $i != "${MACHINE}" ]; then - echo "arch $i 5" >> ${T}/ipkg.conf - fi + ipkgarchs="all any noarch ${TARGET_ARCH} ${IPKG_ARCHS} ${MACHINE}" + priority=1 + for arch in $ipkgarchs; do + echo "arch $arch $priority" >> ${T}/ipkg.conf + priority=$(expr $priority + 5) done ipkg-cl ${IPKG_ARGS} update if [ ! -z "${LINGUAS_INSTALL}" ]; then |