diff options
author | Ricardo Neri <ricardo.neri-calderon@linux.intel.com> | 2019-07-30 17:20:54 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-12 16:23:57 +0100 |
commit | 29fb47861fdac6f0b061b16c7a2a122b23444f5e (patch) | |
tree | a135389e3413eb8688aceb21a305cde2ca3ff5b4 /meta/recipes-core | |
parent | b7f92324cc551d7533858356b4bad49ab6c3ec52 (diff) | |
download | poky-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.bb | 2 |
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).*' | |||
46 | OVMF_SECURE_BOOT_EXTRA_FLAGS ??= "" | 46 | OVMF_SECURE_BOOT_EXTRA_FLAGS ??= "" |
47 | OVMF_SECURE_BOOT_FLAGS = "-DSECURE_BOOT_ENABLE=TRUE ${OVMF_SECURE_BOOT_EXTRA_FLAGS}" | 47 | OVMF_SECURE_BOOT_FLAGS = "-DSECURE_BOOT_ENABLE=TRUE ${OVMF_SECURE_BOOT_EXTRA_FLAGS}" |
48 | 48 | ||
49 | export PYTHON_COMMAND = "${HOSTTOOLS_DIR}/python3" | ||
50 | |||
49 | do_patch[postfuncs] += "fix_basetools_location" | 51 | do_patch[postfuncs] += "fix_basetools_location" |
50 | fix_basetools_location () { | 52 | fix_basetools_location () { |
51 | } | 53 | } |