summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-11-28 10:33:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-04 12:30:59 +0000
commitdbcd6b6e7a5d9ed703324ae7f2888d7685097e06 (patch)
treecbed44ac3405aa4d70ff822775405cbebfebe069 /meta
parenta345ef986a302a7746744e0cc26d79919c0b48f7 (diff)
downloadpoky-dbcd6b6e7a5d9ed703324ae7f2888d7685097e06.tar.gz
python3native: set PYTHON_EXECUTABLE for CMake
This ensures cmake uses the correct python binary rather than potentially, the host system one. (From OE-Core rev: afb8d456360d86254ab00f05866c34d947d02749) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/python3native.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/python3native.bbclass b/meta/classes/python3native.bbclass
index d98fb4c758..182c11aa2e 100644
--- a/meta/classes/python3native.bbclass
+++ b/meta/classes/python3native.bbclass
@@ -1,6 +1,8 @@
1inherit python3-dir 1inherit python3-dir
2 2
3PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3" 3PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3"
4# PYTHON_EXECUTABLE is used by cmake
5PYTHON_EXECUTABLE="${PYTHON}"
4EXTRANATIVEPATH += "python3-native" 6EXTRANATIVEPATH += "python3-native"
5DEPENDS_append = " python3-native " 7DEPENDS_append = " python3-native "
6 8