aboutsummaryrefslogtreecommitdiffstats
path: root/grub
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-04-23 21:27:05 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-04-23 21:27:05 +0000
commitb55c3fcf72fe5de338d3b5f21e484a20e3538027 (patch)
tree2e587a1940b78c1e5f877a990cf2d4ca92e060b6 /grub
parent0f76fe06209907ee5f857ca99903803d051e4d67 (diff)
downloadopenembedded-b55c3fcf72fe5de338d3b5f21e484a20e3538027.tar.gz
throw SkipPackage on non-x86 hosts - patch courtesy pb_.
BKrev: 40898a29mgUSMayt1AH-4PawSi5eyA
Diffstat (limited to 'grub')
-rw-r--r--grub/grub_0.93.oe7
1 files changed, 7 insertions, 0 deletions
diff --git a/grub/grub_0.93.oe b/grub/grub_0.93.oe
index d664205c02..803e487055 100644
--- a/grub/grub_0.93.oe
+++ b/grub/grub_0.93.oe
@@ -9,3 +9,10 @@ SRC_URI = "ftp://alpha.gnu.org/gnu/grub/grub-${PV}.tar.gz; \
S = "${WORKDIR}/grub-${PV}"
inherit autotools
+
+python __anonymous () {
+ import re
+ host = oe.data.getVar('HOST_SYS', d, 1)
+ if not re.match('i.86.*-linux', host):
+ raise oe.parse.SkipPackage("incompatible with host %s" % host)
+}