diff options
author | Darren Hart <dvhart@linux.intel.com> | 2011-11-23 23:17:16 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-30 22:21:53 +0000 |
commit | 36654d6d393cb8c8a545835184a96be4ae0c885d (patch) | |
tree | d6be0fef8bd7e94e03ccb65a77c0add67cd5c7af /meta | |
parent | 978fb865897a178c3ba6b6cf3672da53c25b5171 (diff) | |
download | openembedded-core-36654d6d393cb8c8a545835184a96be4ae0c885d.tar.gz openembedded-core-36654d6d393cb8c8a545835184a96be4ae0c885d.tar.bz2 openembedded-core-36654d6d393cb8c8a545835184a96be4ae0c885d.tar.xz openembedded-core-36654d6d393cb8c8a545835184a96be4ae0c885d.zip |
grub: Use COMPATIBLE_HOST
Drop the anonymous python block in favor of the much simpler
COMPATIBLE_HOST mechanism.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-bsp/grub/grub_1.99.bb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/meta/recipes-bsp/grub/grub_1.99.bb b/meta/recipes-bsp/grub/grub_1.99.bb index a07736342..49c26f6fd 100644 --- a/meta/recipes-bsp/grub/grub_1.99.bb +++ b/meta/recipes-bsp/grub/grub_1.99.bb @@ -22,6 +22,8 @@ SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \ SRC_URI[md5sum] = "ca9f2a2d571b57fc5c53212d1d22e2b5" SRC_URI[sha256sum] = "b91f420f2c51f6155e088e34ff99bea09cc1fb89585cf7c0179644e57abd28ff" +COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)' + inherit autotools inherit gettext @@ -31,13 +33,6 @@ do_configure() { oe_runconf } -python __anonymous () { - import re - host = d.getVar('HOST_SYS', 1) - if not re.match('x86.64.*-linux', host) and not re.match('i.86.*-linux', host): - raise bb.parse.SkipPackage("incompatible with host %s" % host) -} - do_install_append () { install -m 0755 ${WORKDIR}/40_custom ${D}${sysconfdir}/grub.d/40_custom } |