All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: "Rifenbark, Scott M" <scott.m.rifenbark@intel.com>,
	Nathan Rossi <nathan@nathanrossi.com>,
	"Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: Yocto discussion list <yocto@yoctoproject.org>
Subject: Re: in kernel manual, should pick another example for KMACHINE
Date: Thu, 5 Mar 2015 11:58:58 -0500	[thread overview]
Message-ID: <54F88B52.3000004@windriver.com> (raw)
In-Reply-To: <41DEA4B02DBDEF40A0F3B6D0DDB1237988EC1B3F@ORSMSX101.amr.corp.intel.com>

On 15-03-05 11:56 AM, Rifenbark, Scott M wrote:
> I like Nathan's suggestion for the text.  Can someone explain to me though why emenlow is not a good example here?  In the linux-yocto_3.14.bbappend file, KMACHINE_emenlow-noemgd is set equal to "emenlow".  Isn't this equating emenlow-noemgd and emenlow?  I am probably mis-understanding it so I could use some further explanation.
>

The example was a good one, the issue that is being mentioned is
simply that meta-intel has removed the emlow* machine definitions,
so there's no code to use as a concrete addition to the docs.

Bruce

> Thanks,
> Scott
>
>> -----Original Message-----
>> From: yocto-bounces@yoctoproject.org [mailto:yocto-
>> bounces@yoctoproject.org] On Behalf Of Nathan Rossi
>> Sent: Thursday, March 05, 2015 5:48 AM
>> To: Robert P. J. Day
>> Cc: Yocto discussion list
>> Subject: Re: [yocto] in kernel manual, should pick another example for
>> KMACHINE
>>
>> On Thu, Mar 5, 2015 at 10:03 PM, Robert P. J. Day <rpjday@crashcourse.ca>
>> wrote:
>>>
>>>    in section 3.2 of the kernel dev manual, there is a discussion of
>>> KMACHINE and how it is *typically* set to the same value as MACHINE,
>>> but there are cases where that might not be true; however, the example
>>> used to demonstrate this -- emenlow and emenlow-noemgd -- doesn't
>> seem
>>> appropriate as there is no "emenlow" machine definition file anymore
>>> in meta-intel. AFAICT, all of those non-noemgd machine definitions are
>>> gone.
>>>
>>>    in all the layers i have checked out, the only layer where i see
>>> KMACHINE covering a number of MACHINE values is meta-xilinx
>>> (zynq-based machines). it sounds picky but, when demonstrating some
>>> concept, i think it's important that examples used actually exist in
>>> the code base in case people want to check.
>>
>> It comes around a bit due to the nature of different types of hardware. You
>> will find that amongst most of the meta-* bsp layers there exists two types of
>> MACHINE. You have the layers like meta-xilinx, meta-ti, etc which have
>> machines for each board. And then there are the layers like meta-intel which
>> have machines for each platform or SoC. There are a number of reasons for
>> each way.
>>
>> At least for Zynq, the kernel can (if you ignore that it has FPGA
>> logic) be configured and built the same way for all the boards with device
>> trees handling the differences. And as such the configuration is setup for the
>> SoC instead of the board. The reason that you actually see KMACHINE
>> differences in meta-xilinx is that the layer uses the linux-yocto build flow as
>> well as providing an in layer config cache for its targeted KMACHINE's. Which I
>> believe is rarely done in bsp layers that inherit linux-yocto for their kernels (or
>> bbappend to linux-yocto).
>>
>> You could re-word the documentation to cover this case with something like:
>> "This variable is typically set to the same value as the MACHINE variable
>> however in some cases may instead refer to the underlying platform of the
>> MACHINE."
>>
>> Regards,
>> Nathan
>>
>>>
>>> rday
>>>
>>> --
>>>
>>>
>> ===========================================================
>> =============
>>> Robert P. J. Day                                 Ottawa, Ontario, CANADA
>>>                          http://crashcourse.ca
>>>
>>> Twitter:                                       http://twitter.com/rpjday
>>> LinkedIn:                               http://ca.linkedin.com/in/rpjday
>>>
>> ===========================================================
>> ===========
>>> ==
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto



  reply	other threads:[~2015-03-05 16:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-05 12:03 in kernel manual, should pick another example for KMACHINE Robert P. J. Day
2015-03-05 13:48 ` Nathan Rossi
2015-03-05 16:56   ` Rifenbark, Scott M
2015-03-05 16:58     ` Bruce Ashfield [this message]
2015-03-05 17:15     ` Robert P. J. Day
2015-03-05 17:48       ` Rifenbark, Scott M
2015-03-06 18:49         ` Rifenbark, Scott M

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=54F88B52.3000004@windriver.com \
    --to=bruce.ashfield@windriver.com \
    --cc=nathan@nathanrossi.com \
    --cc=rpjday@crashcourse.ca \
    --cc=scott.m.rifenbark@intel.com \
    --cc=yocto@yoctoproject.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.