From: Tom Rini <tom_rini@mentor.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] base.bbclass: introduce COMPATIBLE_TARGET_SYS
Date: Sat, 10 Jul 2010 10:42:28 -0700 [thread overview]
Message-ID: <4C38B104.8050700@mentor.com> (raw)
In-Reply-To: <1278778757-31330-1-git-send-email-fransmeulenbroeks@gmail.com>
Frans Meulenbroeks wrote:
> This patch introduces COMPATIBLE_TARGET_SYS
> It is similar to COMPATIBLE_MACHINE but where COMPATIBLE_MACHINE
> is used to specify that a certain recipe is for a certain machine
> COMPATIBLE_TARGET_SYS can be used to specify that a certain recipe
> is for a certain architecture.
>
> Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Acked-by: Tom Rini <tom_rini@mentor.com>
>
> ---
>
> as also discussed on the oe ML in the thread
> [PATCH] classes/base.bbclass: add INCOMPATIBLE_MACHINE
> ---
> classes/base.bbclass | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/classes/base.bbclass b/classes/base.bbclass
> index b30310d..f76d03c 100644
> --- a/classes/base.bbclass
> +++ b/classes/base.bbclass
> @@ -391,6 +391,13 @@ python () {
> if this_machine and not re.match(need_machine, this_machine):
> raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
>
> + need_target = bb.data.getVar('COMPATIBLE_TARGET_SYS', d, 1)
> + if need_target:
> + import re
> + this_target = bb.data.getVar('TARGET_SYS', d, 1)
> + if this_target and not re.match(need_target, this_target):
> + raise bb.parse.SkipPackage("incompatible with target system %s" % this_target)
> +
> pn = bb.data.getVar('PN', d, 1)
>
> # OBSOLETE in bitbake 1.7.4
--
Tom Rini
Mentor Graphics Corporation
next prev parent reply other threads:[~2010-07-10 17:47 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-07 18:38 [PATCH] classes/base.bbclass: add INCOMPATIBLE_MACHINE Frans Meulenbroeks
2010-07-07 18:49 ` Frans Meulenbroeks
2010-07-07 18:57 ` Phil Blundell
2010-07-07 19:11 ` Frans Meulenbroeks
2010-07-07 19:44 ` Phil Blundell
2010-07-08 6:49 ` Frans Meulenbroeks
2010-07-08 8:23 ` Phil Blundell
2010-07-10 16:19 ` [PATCH] base.bbclass: introduce COMPATIBLE_TARGET_SYS Frans Meulenbroeks
2010-07-10 17:42 ` Tom Rini [this message]
2010-07-10 22:36 ` Phil Blundell
2010-07-11 6:55 ` Frans Meulenbroeks
2010-07-11 7:16 ` Frans Meulenbroeks
2010-07-11 7:48 ` [PATCH v2] base.bbclass: introduce COMPATIBLE_TARGET_SYS and COMPATIBLE_TARGET_ARCH Frans Meulenbroeks
2010-07-11 9:10 ` Phil Blundell
2010-07-11 12:11 ` [PATCH] base.bbclass: introduce COMPATIBLE_TARGET_SYS Phil Blundell
2010-07-12 6:24 ` Frans Meulenbroeks
2010-07-14 7:27 ` Esben Haabendal
2010-07-10 16:23 ` [PATCH] classes/base.bbclass: add INCOMPATIBLE_MACHINE Frans Meulenbroeks
2010-07-10 22:52 ` Khem Raj
2010-07-08 17:07 ` Denys Dmytriyenko
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=4C38B104.8050700@mentor.com \
--to=tom_rini@mentor.com \
--cc=openembedded-devel@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