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:35:32 +0100 |
commit | 7642d980ee9393f88afa822e4b0320e4ead56e9e (patch) | |
tree | 55361fe134c45ea78752e3969be40f68e81e94c8 /meta/recipes-bsp | |
parent | f4511f3684d1cbed6768d1339d5d79d197394af5 (diff) | |
download | ast2050-yocto-poky-7642d980ee9393f88afa822e4b0320e4ead56e9e.zip ast2050-yocto-poky-7642d980ee9393f88afa822e4b0320e4ead56e9e.tar.gz |
grub: Use COMPATIBLE_HOST variable instead of anonymous python
This cleans up code added in 2008 to use modern syntax. It is functionally
equivalent.
(From OE-Core rev: a73b314c95a21e44dc584c58639a038833c9756b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-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 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/ |