]> code.ossystems Code Review - openembedded-core.git/commitdiff
packaged-staging.bbclass: Use a differnet opkg.conf for each TARGET_ARCH
authorJoshua Lock <josh@linux.intel.com>
Thu, 10 Jun 2010 10:29:09 +0000 (11:29 +0100)
committerJoshua Lock <josh@linux.intel.com>
Thu, 10 Jun 2010 10:36:23 +0000 (11:36 +0100)
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>
meta/classes/packaged-staging.bbclass

index 9ae16f1932f57eb0ddbbe8955bd4c050a035d91b..6314e36aa7c999eb9f2a1bffe3afde15a8a97ff7 100644 (file)
@@ -78,7 +78,7 @@ python () {
         bb.data.setVar("PSTAGING_ACTIVE", "0", d)
 }
 
-PSTAGE_MACHCONFIG   = "${PSTAGE_WORKDIR}/opkg.conf"
+PSTAGE_MACHCONFIG   = "${PSTAGE_WORKDIR}/${TARGET_ARCH}-opkg.conf"
 
 PSTAGE_PKGMANAGER = "stage-manager-ipkg"
 
@@ -148,11 +148,11 @@ do_clean_prepend() {
 }
 
 staging_helper () {
-       # Assemble appropriate opkg.conf
+       # Assemble appropriate opkg.conf for the target arch
        conffile=${PSTAGE_MACHCONFIG}
        mkdir -p ${PSTAGE_WORKDIR}/pstaging_lists
        if [ ! -e $conffile ]; then
-               ipkgarchs="${BUILD_ARCH} ${BUILD_ARCH}_${TARGET_ARCH}"
+               ipkgarchs="${TARGET_ARCH} ${BUILD_ARCH} ${BUILD_ARCH}_${TARGET_ARCH}"
                priority=1
                for arch in $ipkgarchs; do
                        echo "arch $arch $priority" >> $conffile