]> code.ossystems Code Review - openembedded-core.git/commitdiff
ovmf: Use HOSTTOOLS' python3
authorRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Tue, 30 Jul 2019 21:20:54 +0000 (17:20 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Aug 2019 09:26:40 +0000 (10:26 +0100)
Use the variable PYTHON_COMMAND to let know EDK2 base tools that python3
in the host shall be used.

In order build successfully, the host must have installed the
python3-distutils package or equivalent.

Based on an original patch by Ross Burton.

Cc: Ross Burton <ross.burton@intel.com>
Cc: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
meta/recipes-core/ovmf/ovmf_git.bb

index c66b751a9490b1982b767a16882de897ef1e500b..834ee32466339deee4fd1eea5d389bfd0de80c48 100644 (file)
@@ -46,6 +46,8 @@ COMPATIBLE_HOST='(i.86|x86_64).*'
 OVMF_SECURE_BOOT_EXTRA_FLAGS ??= ""
 OVMF_SECURE_BOOT_FLAGS = "-DSECURE_BOOT_ENABLE=TRUE ${OVMF_SECURE_BOOT_EXTRA_FLAGS}"
 
+export PYTHON_COMMAND = "${HOSTTOOLS_DIR}/python3"
+
 do_patch[postfuncs] += "fix_basetools_location"
 fix_basetools_location () {
 }