From: Darren Hart <dvhart@linux.intel.com>
To: Chris Larson <kergoth@gmail.com>
Cc: Yocto Project <yocto@yoctoproject.org>
Subject: Re: [RFC PATCH 0/9] New distribution definition for poky-tiny
Date: Wed, 21 Dec 2011 09:48:33 -0800 [thread overview]
Message-ID: <4EF21BF1.1010405@linux.intel.com> (raw)
In-Reply-To: <CABcZANmBvROnETAu6Zvvmxpbxc9NowwiRiiprY+pxwaAjf+mOQ@mail.gmail.com>
On 12/21/2011 09:33 AM, Chris Larson wrote:
> On Wed, Dec 21, 2011 at 9:10 AM, Darren Hart <dvhart@linux.intel.com> wrote:
>> On 12/21/2011 07:52 AM, Chris Larson wrote:
>>> On Wed, Dec 21, 2011 at 2:02 AM, Darren Hart <dvhart@linux.intel.com> wrote:
>>>> For example, I could not discover a way to use
>>>> oe_filter_out inside poky-tiny.conf to remove "keyboard" for MACHINE_FEATURES.
>>>
>>> This might be best handled via inclusion of a .inc which defines an
>>
>> I assume you mean to include the .inc in task-core-boot?
>
> If that works, sure, but that wasn't my intent. You can
> include/require a .inc from a .conf.
>
>>> event handler or anonymous python function that removes it. The
>>
>> I'm not familiar with adding event handlers, can you point me at an
>> example? In general, my concern is that whatever this mechanism is, it
>> shouldn't have to be poky-tiny aware: meaning it needs to glean the
>> knowledge that keymaps should not be added from something else. I
>> suppose this could be some DISTRO_FEATURE, but that is effectively what
>> I've already done in 5/9 "task-core-boot: Allow DISTRO to disable keymaps".
>
> That seems reasonable. Event handlers are used in a number of places
> in the metadata, including base.bbclass :)
>
> python do_some_stuff_to_the_config_metadata () {
> if not isinstance(e, bb.event.ConfigParsed):
> return
>
> # do stuff
> }
> addhandler do_some_stuff_to_the_config_metadata
>
>
>>> problem with the := + oe_filter_out method is that it forces an
>>> immediate variable expansion right there, which can cause problems in
>>> some cases.
>>
>> Right. That and using it in a .conf file results in parsing errors. :-)
>
> := is *technically* perfectly valid in a .conf file, as is
> oe_filter_out, but it's so sensitive to location as to be of limited
> usefulness. All the variables used by the var you're expanding would
> have to have been defined already as of that point in the config.
Hrm, it reported parsing errors on the ${@oe_filter_out not being
defined as well as the "require utils" I added to address that. Maybe
I'm missing something else.
But, I think I'll be taking the VIRTUAL-RUNTIME_keymaps approach
suggested by Martin as that seems consistent with apm and other such things.
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
next prev parent reply other threads:[~2011-12-21 17:48 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 9:02 [RFC PATCH 0/9] New distribution definition for poky-tiny Darren Hart
2011-12-21 9:02 ` [PATCH 1/9] native.bbclass: Fix variable remapping coverage Darren Hart
2011-12-21 9:02 ` [PATCH 2/9] ncurses: Allow override of ENABLE_WIDEC Darren Hart
2011-12-21 9:02 ` [PATCH 3/9] eglibc: Only add eglibc-utils to PACKAGES if wchar is supported Darren Hart
2011-12-21 9:02 ` [PATCH 4/9] linux-yocto-tiny: New kernel recipe for poky-tiny distro (INCOMPLETE) Darren Hart
2011-12-21 14:56 ` Bruce Ashfield
2011-12-21 15:52 ` Darren Hart
2011-12-21 15:56 ` Bruce Ashfield
2011-12-21 16:02 ` Darren Hart
2011-12-21 16:04 ` Bruce Ashfield
2011-12-21 9:02 ` [PATCH 5/9] task-core-boot: Allow DISTRO to disable keymaps Darren Hart
2011-12-21 10:09 ` Martin Jansa
2011-12-21 13:19 ` [yocto] " Koen Kooi
2011-12-21 13:19 ` Koen Kooi
2011-12-21 15:57 ` [yocto] " Darren Hart
2011-12-21 15:57 ` Darren Hart
2011-12-21 16:01 ` Darren Hart
2011-12-21 16:13 ` Martin Jansa
2011-12-21 9:02 ` [PATCH 6/9] distro: Factor out poky-common.inc from poky.conf Darren Hart
2011-12-21 16:28 ` Richard Purdie
2011-12-21 16:47 ` Darren Hart
2011-12-21 17:02 ` Darren Hart
2011-12-21 17:31 ` Richard Purdie
2011-12-21 17:57 ` Darren Hart
2011-12-21 9:02 ` [PATCH 7/9] distro: Add poky-tiny distro definition Darren Hart
2011-12-21 9:02 ` [PATCH 8/9] license: Fix manifest conditional Darren Hart
2011-12-21 9:02 ` [PATCH 9/9] image_types: Ensure /init exists for cpio rootfs archives Darren Hart
2011-12-21 15:52 ` [RFC PATCH 0/9] New distribution definition for poky-tiny Chris Larson
2011-12-21 16:10 ` Darren Hart
2011-12-21 17:33 ` Chris Larson
2011-12-21 17:48 ` Darren Hart [this message]
2011-12-28 0:50 ` McClintock Matthew-B29882
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=4EF21BF1.1010405@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=kergoth@gmail.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.