Patchwork [1/5] siteinfo.bbclass: hack for x32

login
register
mail settings
Submitter Nitin A Kamble
Date July 12, 2011, 7:02 p.m.
Message ID <af851424130d145cef560c4bfaf2ba88ea4c3da6.1310497097.git.nitin.a.kamble@intel.com>
Download mbox | patch
Permalink /patch/7443/
State New, archived
Headers show

Comments

Nitin A Kamble - July 12, 2011, 7:02 p.m.
From: Nitin A Kamble <nitin.a.kamble@intel.com>

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
---
 meta/classes/siteinfo.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Khem Raj - July 13, 2011, 6:20 a.m.
On Jul 12, 2011, at 12:02 PM, nitin.a.kamble@intel.com wrote:

> From: Nitin A Kamble <nitin.a.kamble@intel.com>
> 
> Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
> ---
> meta/classes/siteinfo.bbclass |    3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/meta/classes/siteinfo.bbclass b/meta/classes/siteinfo.bbclass
> index 78b7008..035355f 100644
> --- a/meta/classes/siteinfo.bbclass
> +++ b/meta/classes/siteinfo.bbclass
> @@ -59,6 +59,9 @@ def get_siteinfo_list(d):
>                "x86_64-linux":            "endian-little bit-64 common-glibc",\
>                "x86_64-linux-uclibc":     "endian-little bit-64 common-uclibc"}
>        if target in targetinfo:
> +                  target_cc_arch = bb.data.getVar('TARGET_CC_ARCH', d, 1)
> +               if target_cc_arch == "-mx32":
> +                     target = "i686-linux"

What would/could target be when using -mx32 ?
I suppose it's one of the entries in dictionary above 



>                info = targetinfo[target].split()
>                info.append(target)
>                info.append("common")
> -- 
> 1.7.5.4
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Nitin A Kamble - July 13, 2011, 3:41 p.m.
> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org
> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
> Khem Raj
> Sent: Tuesday, July 12, 2011 11:20 PM
> To: Patches and discussions about the oe-core layer
> Cc: openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH 1/5] siteinfo.bbclass: hack for x32
> 
> 
> 
> On Jul 12, 2011, at 12:02 PM, nitin.a.kamble@intel.com wrote:
> 
> > From: Nitin A Kamble <nitin.a.kamble@intel.com>
> >
> > Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
> > ---
> > meta/classes/siteinfo.bbclass |    3 +++
> > 1 files changed, 3 insertions(+), 0 deletions(-)
> >
> > diff --git a/meta/classes/siteinfo.bbclass
> b/meta/classes/siteinfo.bbclass
> > index 78b7008..035355f 100644
> > --- a/meta/classes/siteinfo.bbclass
> > +++ b/meta/classes/siteinfo.bbclass
> > @@ -59,6 +59,9 @@ def get_siteinfo_list(d):
> >                "x86_64-linux":            "endian-little bit-64
> common-glibc",\
> >                "x86_64-linux-uclibc":     "endian-little bit-64
> common-uclibc"}
> >        if target in targetinfo:
> > +                  target_cc_arch = bb.data.getVar('TARGET_CC_ARCH',
> d, 1)
> > +               if target_cc_arch == "-mx32":
> > +                     target = "i686-linux"
> 
> What would/could target be when using -mx32 ?
> I suppose it's one of the entries in dictionary above
> 
So far x86_64 is the target for x32.

Nitin

> 
> 
> >                info = targetinfo[target].split()
> >                info.append(target)
> >                info.append("common")
> > --
> > 1.7.5.4
> >
> >
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Khem Raj - July 14, 2011, 7:49 p.m.
On Wed, Jul 13, 2011 at 8:41 AM, Kamble, Nitin A
<nitin.a.kamble@intel.com> wrote:
>
>
>> -----Original Message-----
>> From: openembedded-core-bounces@lists.openembedded.org
>> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
>> Khem Raj
>> Sent: Tuesday, July 12, 2011 11:20 PM
>> To: Patches and discussions about the oe-core layer
>> Cc: openembedded-core@lists.openembedded.org
>> Subject: Re: [OE-core] [PATCH 1/5] siteinfo.bbclass: hack for x32
>>
>>
>>
>> On Jul 12, 2011, at 12:02 PM, nitin.a.kamble@intel.com wrote:
>>
>> > From: Nitin A Kamble <nitin.a.kamble@intel.com>
>> >
>> > Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
>> > ---
>> > meta/classes/siteinfo.bbclass |    3 +++
>> > 1 files changed, 3 insertions(+), 0 deletions(-)
>> >
>> > diff --git a/meta/classes/siteinfo.bbclass
>> b/meta/classes/siteinfo.bbclass
>> > index 78b7008..035355f 100644
>> > --- a/meta/classes/siteinfo.bbclass
>> > +++ b/meta/classes/siteinfo.bbclass
>> > @@ -59,6 +59,9 @@ def get_siteinfo_list(d):
>> >                "x86_64-linux":            "endian-little bit-64
>> common-glibc",\
>> >                "x86_64-linux-uclibc":     "endian-little bit-64
>> common-uclibc"}
>> >        if target in targetinfo:
>> > +                  target_cc_arch = bb.data.getVar('TARGET_CC_ARCH',
>> d, 1)
>> > +               if target_cc_arch == "-mx32":
>> > +                     target = "i686-linux"
>>
>> What would/could target be when using -mx32 ?
>> I suppose it's one of the entries in dictionary above
>>
> So far x86_64 is the target for x32.

yes I refreshed myself with the new ABI. x32 seems to be a true multilib case
of amd64 ABI.

>
> Nitin
>
>>
>>
>> >                info = targetinfo[target].split()
>> >                info.append(target)
>> >                info.append("common")
>> > --
>> > 1.7.5.4
>> >
>> >
>> > _______________________________________________
>> > Openembedded-core mailing list
>> > Openembedded-core@lists.openembedded.org
>> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>

Patch

diff --git a/meta/classes/siteinfo.bbclass b/meta/classes/siteinfo.bbclass
index 78b7008..035355f 100644
--- a/meta/classes/siteinfo.bbclass
+++ b/meta/classes/siteinfo.bbclass
@@ -59,6 +59,9 @@  def get_siteinfo_list(d):
                "x86_64-linux":            "endian-little bit-64 common-glibc",\
                "x86_64-linux-uclibc":     "endian-little bit-64 common-uclibc"}
        if target in targetinfo:
+       	       target_cc_arch = bb.data.getVar('TARGET_CC_ARCH', d, 1)
+               if target_cc_arch == "-mx32":
+                     target = "i686-linux"
                info = targetinfo[target].split()
                info.append(target)
                info.append("common")