All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergey Matyukevich <Sergey_Matyukevich@mentor.com>
To: Bruce Ashfield <bruce.ashfield@gmail.com>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] map_kernel_arch: x86 sub-architectures
Date: Thu, 18 Apr 2013 16:34:46 +0400	[thread overview]
Message-ID: <516FE866.6050506@mentor.com> (raw)
In-Reply-To: <CADkTA4OtauLj35mvDnO7Z3GAZhVebbCB1bzdyy2f=M+Oj2HCBA@mail.gmail.com>

On 04/17/2013 06:24 PM, Bruce Ashfield wrote:
> On Wed, Apr 17, 2013 at 10:05 AM, Sergey Matyukevich
> <Sergey_Matyukevich@mentor.com>  wrote:
>> Hello,
>>
>>
>>>> Suppose we build software for x86 targets on x86 build hosts. There are
>>>> use-cases
>>>> when it is not enough to specify x86 as a kernel architecture. It is
>>>> necessary
>>>
>>>
>>> What are the details of the use cases ? I've never run into this myself,
>>> and
>>> almost no parts of the kernel build infrastructure differentiates between
>>> x86 and x86_64 .. so I'm curious to know what is breaking.
>>
>>
>> So far we observed this problem in two cases:
>> - build systemtap modules for x86_32 target on x86_64 build hosts
>> - build virtualbox-guest modules for x86_32 target on x86_64 build hosts
>
> I'm still interested in drilling down on the details. If the build of
> those modules
> is being influenced by the build host vs the target kernel, that's a form of
> host contamination in my book.
>
> i.e. so with this change you are setting TARGET_ARCH more precisely, but
> that's going to impact the kernel build itself, and the current x86 is exactly
> what other layers and recipes would expect, as does the kernel build.
>
> With the more specific setting, clearly the builds of the modules you mention
> make use of it, is it that they are currently seeing 'x86' and defaulting to
> 64 bit ? I'd expect that they could be patched to look at the staged kernel
> source or the .config to determine something similar, and the change would
> be more isolated. I'm guessing, since as I said, I haven't run into these myself
> and haven't gone to crawl the code yet.
>
> Adding a return value of i386 now is also a interesting, it currently
> isn't returned,
> and doesn't really mean anything useful to the kernel build anymore.
> It's strictly
> compatibility. Why doesn't a return of 'x86' work in any case that you are
> returning i386 ?

Concerning your comments:

- host contamination
It doesn't seem to be a contamination by host settings. In the case of 
systemtap modules, build failed for ARCH=x86, but was ok for ARCH=i386. 
However note, that it was is not systemtap itself, it was a custom 
systemtap probe module built by systemtap tools.

- i386 vs x86
As you noted, i386 does not mean anything really useful anymore from the 
'kernel point of view'. Roughtly speaking, it is an alias for x86_32. 
That is why it should not break any other layers and recipes which 
expect x86. In other words, split i386-x86-x86_64 affects only those who 
are interested in this information.


Sure, all the mentioned issues could be fixed in an isolated way in 
their recipes. Though after I ran into the same type of issue twice, I 
thought it might be reasonable to propagate the fix upstairs, to oe-core.


Thanks,
Sergey



      reply	other threads:[~2013-04-18 12:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-17 12:10 [PATCH] map_kernel_arch: x86 sub-architectures Sergey Matyukevich
2013-04-17 13:52 ` Bruce Ashfield
2013-04-17 14:05   ` Sergey Matyukevich
2013-04-17 14:24     ` Bruce Ashfield
2013-04-18 12:34       ` Sergey Matyukevich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=516FE866.6050506@mentor.com \
    --to=sergey_matyukevich@mentor.com \
    --cc=bruce.ashfield@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.