[oe-commits] Richard Purdie : grub: Use COMPATIBLE_HOST variable instead of anonymous python

git at git.openembedded.org git at git.openembedded.org
Tue Jul 24 09:15:27 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: a73b314c95a21e44dc584c58639a038833c9756b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a73b314c95a21e44dc584c58639a038833c9756b

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Mon Jul 23 11:27:12 2012 +0000

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 <richard.purdie at linuxfoundation.org>

---

 meta/recipes-bsp/grub/grub_0.97.bb |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/meta/recipes-bsp/grub/grub_0.97.bb b/meta/recipes-bsp/grub/grub_0.97.bb
index da72c7a..5ba1a08 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/





More information about the Openembedded-commits mailing list