summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-06-10 11:29:09 +0100
committerJoshua Lock <josh@linux.intel.com>2010-06-10 11:36:23 +0100
commit6a7549ff000ec697d1ec30242d4aca1ee47307c5 (patch)
tree5fbf5f145358798385651e4b15d72e8fbb0a76ab
parent8273262ae64d12bd03100d4312dd90964f2ade6f (diff)
downloadpoky-6a7549ff000ec697d1ec30242d4aca1ee47307c5.tar.gz
packaged-staging.bbclass: Use a differnet opkg.conf for each TARGET_ARCH
Assembling an appropriate opkg.conf in the pstage_helper is difficult when building for multiple target architectures in one Poky directory, work around this by generating an appropriate opkg.conf for the TARGET_ARCH and using an ${TARGET_ARCH}-opkg.conf for packaged staging. Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--meta/classes/packaged-staging.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/packaged-staging.bbclass b/meta/classes/packaged-staging.bbclass
index 9ae16f1932..6314e36aa7 100644
--- a/meta/classes/packaged-staging.bbclass
+++ b/meta/classes/packaged-staging.bbclass
@@ -78,7 +78,7 @@ python () {
78 bb.data.setVar("PSTAGING_ACTIVE", "0", d) 78 bb.data.setVar("PSTAGING_ACTIVE", "0", d)
79} 79}
80 80
81PSTAGE_MACHCONFIG = "${PSTAGE_WORKDIR}/opkg.conf" 81PSTAGE_MACHCONFIG = "${PSTAGE_WORKDIR}/${TARGET_ARCH}-opkg.conf"
82 82
83PSTAGE_PKGMANAGER = "stage-manager-ipkg" 83PSTAGE_PKGMANAGER = "stage-manager-ipkg"
84 84
@@ -148,11 +148,11 @@ do_clean_prepend() {
148} 148}
149 149
150staging_helper () { 150staging_helper () {
151 # Assemble appropriate opkg.conf 151 # Assemble appropriate opkg.conf for the target arch
152 conffile=${PSTAGE_MACHCONFIG} 152 conffile=${PSTAGE_MACHCONFIG}
153 mkdir -p ${PSTAGE_WORKDIR}/pstaging_lists 153 mkdir -p ${PSTAGE_WORKDIR}/pstaging_lists
154 if [ ! -e $conffile ]; then 154 if [ ! -e $conffile ]; then
155 ipkgarchs="${BUILD_ARCH} ${BUILD_ARCH}_${TARGET_ARCH}" 155 ipkgarchs="${TARGET_ARCH} ${BUILD_ARCH} ${BUILD_ARCH}_${TARGET_ARCH}"
156 priority=1 156 priority=1
157 for arch in $ipkgarchs; do 157 for arch in $ipkgarchs; do
158 echo "arch $arch $priority" >> $conffile 158 echo "arch $arch $priority" >> $conffile