grub: substitute the anonymous python function w/ COMPATIBLE_HOST
authorMichael Lauer <mickey@vanille-media.de>
Tue, 28 Mar 2006 10:00:09 +0000 (10:00 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Tue, 28 Mar 2006 10:00:09 +0000 (10:00 +0000)
packages/grub/grub_0.93.bb

index d67247c..8341184 100644 (file)
@@ -1,5 +1,6 @@
+DESCRIPTION = "GRUB is the GRand Unified Bootloader"
 SECTION = "base"
-DESCRIPTION = "grand unified bootloader"
+HOMEPAGE = "http://www.gnu.org/software/grub"
 
 SRC_URI = "ftp://alpha.gnu.org/gnu/grub/grub-${PV}.tar.gz; \
           file://autohell.patch;patch=1 \
@@ -10,9 +11,4 @@ S = "${WORKDIR}/grub-${PV}"
 
 inherit autotools
 
-python __anonymous () {
-       import re
-       host = bb.data.getVar('HOST_SYS', d, 1)
-       if not re.match('i.86.*-linux', host):
-               raise bb.parse.SkipPackage("incompatible with host %s" % host)
-}
+COMPATIBLE_HOST = 'i.86.*-linux'