Patchwork [4/4] tune-i586: fix hardcoded TUNE_PKGARCH

login
register
mail settings
Submitter Dongxiao Xu
Date Sept. 27, 2011, 1:52 p.m.
Message ID <5dd7148b479c0d948ae4b5fc479960f1c9ffd121.1317131373.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/12201/
State New, archived
Headers show

Comments

Dongxiao Xu - Sept. 27, 2011, 1:52 p.m.
Use TUNE_FEATURES to determine the setting to TUNE_PKGARCH, which fixes
the wrong setting of PACKAGE_ARCH in multilib case.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 meta/conf/machine/include/tune-i586.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/conf/machine/include/tune-i586.inc b/meta/conf/machine/include/tune-i586.inc
index ba655b9..963afb8 100644
--- a/meta/conf/machine/include/tune-i586.inc
+++ b/meta/conf/machine/include/tune-i586.inc
@@ -1,5 +1,6 @@ 
 DEFAULTTUNE ?= "i586"
-TUNE_PKGARCH ?= "i586"
+TUNE_PKGARCH_TMP := "${@bb.utils.contains("TUNE_FEATURES", "m32", "x86", "x86_64", d)}"
+TUNE_PKGARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "i586", "i586", TUNE_PKGARCH_TMP, d)}"
 
 require conf/machine/include/ia32/arch-ia32.inc