summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_ipk.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_ipk.bbclass')
-rw-r--r--meta/classes/package_ipk.bbclass16
1 files changed, 11 insertions, 5 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index b4308d55a6..d99150ec56 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -94,15 +94,11 @@ package_update_index_ipk () {
94# use against the host system in sdk builds 94# use against the host system in sdk builds
95# 95#
96package_generate_ipkg_conf () { 96package_generate_ipkg_conf () {
97 mkdir -p ${STAGING_ETCDIR_NATIVE}/ 97 package_generate_archlist
98 echo "src oe file:${DEPLOY_DIR_IPK}" > ${IPKGCONF_TARGET} 98 echo "src oe file:${DEPLOY_DIR_IPK}" > ${IPKGCONF_TARGET}
99 echo "src oe file:${DEPLOY_DIR_IPK}" > ${IPKGCONF_SDK} 99 echo "src oe file:${DEPLOY_DIR_IPK}" > ${IPKGCONF_SDK}
100 ipkgarchs="${PACKAGE_ARCHS}" 100 ipkgarchs="${PACKAGE_ARCHS}"
101 priority=1
102 for arch in $ipkgarchs; do 101 for arch in $ipkgarchs; do
103 echo "arch $arch $priority" >> ${IPKGCONF_TARGET}
104 echo "arch ${BUILD_ARCH}-$arch-sdk $priority" >> ${IPKGCONF_SDK}
105 priority=$(expr $priority + 5)
106 if [ -e ${DEPLOY_DIR_IPK}/$arch/Packages ] ; then 102 if [ -e ${DEPLOY_DIR_IPK}/$arch/Packages ] ; then
107 echo "src oe-$arch file:${DEPLOY_DIR_IPK}/$arch" >> ${IPKGCONF_TARGET} 103 echo "src oe-$arch file:${DEPLOY_DIR_IPK}/$arch" >> ${IPKGCONF_TARGET}
108 fi 104 fi
@@ -112,6 +108,16 @@ package_generate_ipkg_conf () {
112 done 108 done
113} 109}
114 110
111package_generate_archlist () {
112 ipkgarchs="${PACKAGE_ARCHS}"
113 priority=1
114 for arch in $ipkgarchs; do
115 echo "arch $arch $priority" >> ${IPKGCONF_TARGET}
116 echo "arch ${BUILD_ARCH}-$arch-sdk $priority" >> ${IPKGCONF_SDK}
117 priority=$(expr $priority + 5)
118 done
119}
120
115python do_package_ipk () { 121python do_package_ipk () {
116 import sys, re, copy 122 import sys, re, copy
117 123