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 | |
parent | f4511f3684d1cbed6768d1339d5d79d197394af5 (diff) | |
download | 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>
-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 | |||
23 | 23 | ||
24 | inherit autotools | 24 | inherit autotools |
25 | 25 | ||
26 | python __anonymous () { | 26 | COMPATIBLE_HOST = "i.86.*-linux" |
27 | import re | ||
28 | host = d.getVar('HOST_SYS', True) | ||
29 | if not re.match('i.86.*-linux', host): | ||
30 | raise bb.parse.SkipPackage("incompatible with host %s" % host) | ||
31 | } | ||
32 | 27 | ||
33 | do_install_append_vmware() { | 28 | do_install_append_vmware() { |
34 | mkdir -p ${D}/boot/ | 29 | mkdir -p ${D}/boot/ |