Patchwork libgcc: Disable multilib install for nativesdk

login
register
mail settings
Submitter Constantin Musca
Date Feb. 5, 2013, 9:58 a.m.
Message ID <1360058304-12813-1-git-send-email-constantinx.musca@intel.com>
Download mbox | patch
Permalink /patch/44075/
State Accepted
Commit 898a8094b1dcffc5ee54dbb612477c9bb3b8fd4b
Headers show

Comments

Constantin Musca - Feb. 5, 2013, 9:58 a.m.
From: Khem Raj <raj.khem@gmail.com>

Fixes errors when building SDK for multilibbed enabled
architectures.

[YOCTO #3832]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
---
 meta/recipes-devtools/gcc/gcc-4.7.inc   | 2 +-
 meta/recipes-devtools/gcc/libgcc_4.7.bb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
index 2dc81f0..991f37c 100644
--- a/meta/recipes-devtools/gcc/gcc-4.7.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
@@ -1,6 +1,6 @@ 
 require gcc-common.inc
 
-PR = "r16"
+PR = "r17"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.7.1
diff --git a/meta/recipes-devtools/gcc/libgcc_4.7.bb b/meta/recipes-devtools/gcc/libgcc_4.7.bb
index 550a3c9..47669a2 100644
--- a/meta/recipes-devtools/gcc/libgcc_4.7.bb
+++ b/meta/recipes-devtools/gcc/libgcc_4.7.bb
@@ -86,7 +86,7 @@  python do_multilib_install() {
     import re
 
     multilibs = d.getVar('MULTILIB_VARIANTS', True)
-    if not multilibs:
+    if not multilibs or bb.data.inherits_class('nativesdk', d):
         return
 
     binv = d.getVar('BINV', True)