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>
This commit is contained in:
Richard Purdie 2012-07-23 11:27:12 +00:00
parent f4511f3684
commit 7642d980ee
1 changed files with 1 additions and 6 deletions

View File

@ -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/