From a73b314c95a21e44dc584c58639a038833c9756b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 23 Jul 2012 11:27:12 +0000 Subject: grub: Use COMPATIBLE_HOST variable instead of anonymous python This cleans up code added in 2008 to use modern syntax. It is functionally equivalent. Signed-off-by: Richard Purdie --- meta/recipes-bsp/grub/grub_0.97.bb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'meta/recipes-bsp') diff --git a/meta/recipes-bsp/grub/grub_0.97.bb b/meta/recipes-bsp/grub/grub_0.97.bb index da72c7ad79..5ba1a08499 100644 --- a/meta/recipes-bsp/grub/grub_0.97.bb +++ b/meta/recipes-bsp/grub/grub_0.97.bb @@ -23,12 +23,7 @@ SRC_URI[sha256sum] = "4e1d15d12dbd3e9208111d6b806ad5a9857ca8850c47877d36575b9045 inherit autotools -python __anonymous () { - import re - host = d.getVar('HOST_SYS', True) - if not re.match('i.86.*-linux', host): - raise bb.parse.SkipPackage("incompatible with host %s" % host) -} +COMPATIBLE_HOST = "i.86.*-linux" do_install_append_vmware() { mkdir -p ${D}/boot/ -- cgit 1.2.3-korg