From b55c3fcf72fe5de338d3b5f21e484a20e3538027 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Fri, 23 Apr 2004 21:27:05 +0000 Subject: throw SkipPackage on non-x86 hosts - patch courtesy pb_. BKrev: 40898a29mgUSMayt1AH-4PawSi5eyA --- grub/grub_0.93.oe | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'grub') 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) +} -- cgit v1.2.3