All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] classes/base.bbclass: add INCOMPATIBLE_MACHINE
@ 2010-07-07 18:38 Frans Meulenbroeks
  2010-07-07 18:49 ` Frans Meulenbroeks
  0 siblings, 1 reply; 20+ messages in thread
From: Frans Meulenbroeks @ 2010-07-07 18:38 UTC (permalink / raw)
  To: openembedded-devel

added INCOMPATIBLE_MACHINE
we have COMPATIBLE_MACHINE but that does not allow to say that
a package is supported by all except a certain machine.
a regexp like "(?!arch)"
This mechanism can be used to exclude certain machines.
Idea is that in binutils and gcc you can use this to specify that
a certain version does not support a certain machine

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
---
 classes/base.bbclass |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index 2da0b7a..3174469 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -380,6 +380,13 @@ python () {
             if this_machine and not re.match(need_machine, this_machine):
                 raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
 
+        need_machine = bb.data.getVar('INCOMPATIBLE_MACHINE', d, 1)
+        if need_machine:
+            import re
+            this_machine = bb.data.getVar('MACHINE', d, 1)
+            if this_machine and re.match(need_machine, this_machine):
+                raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
+
     pn = bb.data.getVar('PN', d, 1)
 
     # OBSOLETE in bitbake 1.7.4
-- 
1.6.4.2




^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-07-14  7:27 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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.