throw SkipPackage on non-x86 hosts - patch courtesy pb_.
authorMichael Lauer <mickey@vanille-media.de>
Fri, 23 Apr 2004 21:27:05 +0000 (21:27 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Fri, 23 Apr 2004 21:27:05 +0000 (21:27 +0000)
BKrev: 40898a29mgUSMayt1AH-4PawSi5eyA

grub/grub_0.93.oe

index d664205..803e487 100644 (file)
@@ -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)
+}