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>
This commit is contained in:
Joshua Lock 2010-06-10 11:29:09 +01:00
parent 8273262ae6
commit 6a7549ff00
1 changed files with 3 additions and 3 deletions

View 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