On modern Power systems `uname -m` yields 'ppc64le' but Rust knows the architecture as 'powerpc64le'. Use RUST_HOST_SYS rather than HOST_SYS to ensure we have the right arch name.
Change-Id: I63640e39d29a00c3101425213ba4b1d248ac9ace Signed-off-by: Andrew Jeffery <and...@aj.id.au> --- meta-python/classes/pyo3.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-python/classes/pyo3.bbclass b/meta-python/classes/pyo3.bbclass index 6ce21329c2ef..c2e8e7b385c0 100644 --- a/meta-python/classes/pyo3.bbclass +++ b/meta-python/classes/pyo3.bbclass @@ -3,12 +3,12 @@ # and setuptools_rust properly set up the environment for cross compilation # -inherit cargo python3-dir siteinfo +inherit cargo python3-dir siteinfo rust-common export PYO3_CROSS="1" export PYO3_CROSS_PYTHON_VERSION="${PYTHON_BASEVERSION}" export PYO3_CROSS_LIB_DIR="${STAGING_LIBDIR}" -export CARGO_BUILD_TARGET="${HOST_SYS}" +export CARGO_BUILD_TARGET="${RUST_HOST_SYS}" export RUSTFLAGS export PYO3_PYTHON="${PYTHON}" export PYO3_CONFIG_FILE="${WORKDIR}/pyo3.config" -- 2.32.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#162123): https://lists.openembedded.org/g/openembedded-core/message/162123 Mute This Topic: https://lists.openembedded.org/mt/89310406/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-