Patchwork [1/1] opkg: Add the condition for the content of arch.conf when enable multilib

mail settings
Submitter Xiaofeng Yan
Date April 9, 2012, 7:48 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/25355/
State Accepted
Commit 700fc9a5d25ebb1f85cb9db11e41ba502744fe7e
Headers show


Xiaofeng Yan - April 9, 2012, 7:48 a.m.
From: Xiaofeng Yan <>

After successfully installed some lib32 multilib packages into the
x86-64 image, we just found that the file content of /var/lib/opkg/status in
rootfs changed after the very 1st boot, many lib32 related packages information
are missing in that file.

The missing arch "x86" in arch.conf cause the above problem. Adding the
condition for the content of arch.conf when enable multilib. If build
multilib image, "ALL_MULTILIB_PACKAGE_ARCHS" will be used instead of

[YOCTO #1522]

Signed-off-by: Xiaofeng Yan <>
 meta/recipes-devtools/opkg/ |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)


diff --git a/meta/recipes-devtools/opkg/ b/meta/recipes-devtools/opkg/
index 3a559cb..f37b2db 100644
--- a/meta/recipes-devtools/opkg/
+++ b/meta/recipes-devtools/opkg/
@@ -9,7 +9,12 @@  do_compile() {
 	rm -f $archconf
-	ipkgarchs="${PACKAGE_ARCHS}"
+	multilibs="${@d.getVar('MULTILIBS',True)}"
+	if [ "X${multilibs}"  == "XNone" ]; then
+		ipkgarchs="${PACKAGE_ARCHS}"
+	else
+	fi
 	for arch in $ipkgarchs; do 
 		echo "arch $arch $priority" >> $archconf