summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorRicardo Neri <ricardo.neri-calderon@linux.intel.com>2019-07-30 17:20:54 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-08-12 16:23:57 +0100
commit29fb47861fdac6f0b061b16c7a2a122b23444f5e (patch)
treea135389e3413eb8688aceb21a305cde2ca3ff5b4 /meta/recipes-core
parentb7f92324cc551d7533858356b4bad49ab6c3ec52 (diff)
downloadpoky-29fb47861fdac6f0b061b16c7a2a122b23444f5e.tar.gz
ovmf: Use HOSTTOOLS' python3
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> (From OE-Core rev: 435d1f8ffe9df86367316d25cb6def2ea2041642) Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/ovmf/ovmf_git.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb
index c66b751a94..834ee32466 100644
--- a/meta/recipes-core/ovmf/ovmf_git.bb
+++ b/meta/recipes-core/ovmf/ovmf_git.bb
@@ -46,6 +46,8 @@ COMPATIBLE_HOST='(i.86|x86_64).*'
46OVMF_SECURE_BOOT_EXTRA_FLAGS ??= "" 46OVMF_SECURE_BOOT_EXTRA_FLAGS ??= ""
47OVMF_SECURE_BOOT_FLAGS = "-DSECURE_BOOT_ENABLE=TRUE ${OVMF_SECURE_BOOT_EXTRA_FLAGS}" 47OVMF_SECURE_BOOT_FLAGS = "-DSECURE_BOOT_ENABLE=TRUE ${OVMF_SECURE_BOOT_EXTRA_FLAGS}"
48 48
49export PYTHON_COMMAND = "${HOSTTOOLS_DIR}/python3"
50
49do_patch[postfuncs] += "fix_basetools_location" 51do_patch[postfuncs] += "fix_basetools_location"
50fix_basetools_location () { 52fix_basetools_location () {
51} 53}