From: Michael Lauer Date: Fri, 23 Apr 2004 21:27:05 +0000 (+0000) Subject: throw SkipPackage on non-x86 hosts - patch courtesy pb_. X-Git-Tag: Release-2010-05/1~19582 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b55c3fcf72fe5de338d3b5f21e484a20e3538027;p=openembedded.git throw SkipPackage on non-x86 hosts - patch courtesy pb_. BKrev: 40898a29mgUSMayt1AH-4PawSi5eyA --- 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) +}