diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-23 11:27:12 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-24 10:11:57 +0100 |
commit | a73b314c95a21e44dc584c58639a038833c9756b (patch) | |
tree | 50cf678cf8cfb26aef6336f19d2cc86690dba40f /meta | |
parent | cae93d99497b822de9607261d225385423d5daf2 (diff) | |
download | openembedded-core-a73b314c95a21e44dc584c58639a038833c9756b.tar.gz openembedded-core-a73b314c95a21e44dc584c58639a038833c9756b.tar.bz2 openembedded-core-a73b314c95a21e44dc584c58639a038833c9756b.zip |
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@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | 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 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/ |