From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Cc: Christopher Larson <chris_larson@mentor.com>
Subject: Re: [PATCH] base.bbclass: allow specifying an lsb distro hook via the metadata
Date: Thu, 16 Aug 2012 10:49:52 -0700 [thread overview]
Message-ID: <502D32C0.2060601@linux.intel.com> (raw)
In-Reply-To: <1343945450-26806-1-git-send-email-kergoth@gmail.com>
On 08/02/2012 03:10 PM, Christopher Larson wrote:
> From: Christopher Larson <chris_larson@mentor.com>
>
> This is useful when you have a rather large set of compatible distros. For
> example: Centos 5.4, 5.5, 5.6, etc, RHEL server 5.x, RHEL workstation 5.x.
>
> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
> ---
> meta/classes/base.bbclass | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
> index e15fa26..192c777 100644
> --- a/meta/classes/base.bbclass
> +++ b/meta/classes/base.bbclass
> @@ -34,11 +34,21 @@ def oe_import(d):
> python oe_import_eh () {
> if isinstance(e, bb.event.ConfigParsed):
> oe_import(e.data)
> - e.data.setVar("NATIVELSBSTRING", oe.lsb.distro_identifier())
> + e.data.setVar("NATIVELSBSTRING", lsb_distro_identifier(e.data))
> }
>
> addhandler oe_import_eh
>
> +def lsb_distro_identifier(d):
> + adjust = d.getVar('LSB_DISTRO_ADJUST', True)
> + adjust_func = None
> + if adjust:
> + try:
> + adjust_func = globals()[adjust]
> + except KeyError:
> + pass
> + return oe.lsb.distro_identifier(adjust_func)
> +
> die() {
> bbfatal "$*"
> }
>
Merged into OE-Core
Thanks
Sau!
prev parent reply other threads:[~2012-08-16 18:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-02 22:10 [PATCH] base.bbclass: allow specifying an lsb distro hook via the metadata Christopher Larson
2012-08-16 17:49 ` Saul Wold [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=502D32C0.2060601@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=chris_larson@mentor.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox