diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/cargo.bbclass | 4 | ||||
| -rw-r--r-- | meta/classes/cargo_common.bbclass | 6 | ||||
| -rw-r--r-- | meta/classes/python_pyo3.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes/rust-target-config.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes/rust.bbclass | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/meta/classes/cargo.bbclass b/meta/classes/cargo.bbclass index 4a780a501f..539ff03ec7 100644 --- a/meta/classes/cargo.bbclass +++ b/meta/classes/cargo.bbclass | |||
| @@ -32,12 +32,12 @@ MANIFEST_PATH ??= "${S}/${CARGO_SRC_DIR}/Cargo.toml" | |||
| 32 | 32 | ||
| 33 | RUSTFLAGS ??= "" | 33 | RUSTFLAGS ??= "" |
| 34 | BUILD_MODE = "${@['--release', ''][d.getVar('DEBUG_BUILD') == '1']}" | 34 | BUILD_MODE = "${@['--release', ''][d.getVar('DEBUG_BUILD') == '1']}" |
| 35 | CARGO_BUILD_FLAGS = "-v --target ${HOST_SYS} ${BUILD_MODE} --manifest-path=${MANIFEST_PATH}" | 35 | CARGO_BUILD_FLAGS = "-v --target ${RUST_HOST_SYS} ${BUILD_MODE} --manifest-path=${MANIFEST_PATH}" |
| 36 | 36 | ||
| 37 | # This is based on the content of CARGO_BUILD_FLAGS and generally will need to | 37 | # This is based on the content of CARGO_BUILD_FLAGS and generally will need to |
| 38 | # change if CARGO_BUILD_FLAGS changes. | 38 | # change if CARGO_BUILD_FLAGS changes. |
| 39 | BUILD_DIR = "${@['release', 'debug'][d.getVar('DEBUG_BUILD') == '1']}" | 39 | BUILD_DIR = "${@['release', 'debug'][d.getVar('DEBUG_BUILD') == '1']}" |
| 40 | CARGO_TARGET_SUBDIR="${HOST_SYS}/${BUILD_DIR}" | 40 | CARGO_TARGET_SUBDIR="${RUST_HOST_SYS}/${BUILD_DIR}" |
| 41 | oe_cargo_build () { | 41 | oe_cargo_build () { |
| 42 | export RUSTFLAGS="${RUSTFLAGS}" | 42 | export RUSTFLAGS="${RUSTFLAGS}" |
| 43 | export RUST_TARGET_PATH="${RUST_TARGET_PATH}" | 43 | export RUST_TARGET_PATH="${RUST_TARGET_PATH}" |
diff --git a/meta/classes/cargo_common.bbclass b/meta/classes/cargo_common.bbclass index 39f32829fd..dcd0afd980 100644 --- a/meta/classes/cargo_common.bbclass +++ b/meta/classes/cargo_common.bbclass | |||
| @@ -69,15 +69,15 @@ cargo_common_do_configure () { | |||
| 69 | cat <<- EOF >> ${CARGO_HOME}/config | 69 | cat <<- EOF >> ${CARGO_HOME}/config |
| 70 | 70 | ||
| 71 | # HOST_SYS | 71 | # HOST_SYS |
| 72 | [target.${HOST_SYS}] | 72 | [target.${RUST_HOST_SYS}] |
| 73 | linker = "${CARGO_RUST_TARGET_CCLD}" | 73 | linker = "${CARGO_RUST_TARGET_CCLD}" |
| 74 | EOF | 74 | EOF |
| 75 | 75 | ||
| 76 | if [ "${HOST_SYS}" != "${BUILD_SYS}" ]; then | 76 | if [ "${RUST_HOST_SYS}" != "${RUST_BUILD_SYS}" ]; then |
| 77 | cat <<- EOF >> ${CARGO_HOME}/config | 77 | cat <<- EOF >> ${CARGO_HOME}/config |
| 78 | 78 | ||
| 79 | # BUILD_SYS | 79 | # BUILD_SYS |
| 80 | [target.${BUILD_SYS}] | 80 | [target.${RUST_BUILD_SYS}] |
| 81 | linker = "${RUST_BUILD_CCLD}" | 81 | linker = "${RUST_BUILD_CCLD}" |
| 82 | EOF | 82 | EOF |
| 83 | fi | 83 | fi |
diff --git a/meta/classes/python_pyo3.bbclass b/meta/classes/python_pyo3.bbclass index 10cc3a0645..b41e3ba075 100644 --- a/meta/classes/python_pyo3.bbclass +++ b/meta/classes/python_pyo3.bbclass | |||
| @@ -8,7 +8,7 @@ inherit cargo python3-dir siteinfo | |||
| 8 | export PYO3_CROSS="1" | 8 | export PYO3_CROSS="1" |
| 9 | export PYO3_CROSS_PYTHON_VERSION="${PYTHON_BASEVERSION}" | 9 | export PYO3_CROSS_PYTHON_VERSION="${PYTHON_BASEVERSION}" |
| 10 | export PYO3_CROSS_LIB_DIR="${STAGING_LIBDIR}" | 10 | export PYO3_CROSS_LIB_DIR="${STAGING_LIBDIR}" |
| 11 | export CARGO_BUILD_TARGET="${HOST_SYS}" | 11 | export CARGO_BUILD_TARGET="${RUST_HOST_SYS}" |
| 12 | export RUSTFLAGS | 12 | export RUSTFLAGS |
| 13 | export PYO3_PYTHON="${PYTHON}" | 13 | export PYO3_PYTHON="${PYTHON}" |
| 14 | export PYO3_CONFIG_FILE="${WORKDIR}/pyo3.config" | 14 | export PYO3_CONFIG_FILE="${WORKDIR}/pyo3.config" |
diff --git a/meta/classes/rust-target-config.bbclass b/meta/classes/rust-target-config.bbclass index 1721839922..7fe039601a 100644 --- a/meta/classes/rust-target-config.bbclass +++ b/meta/classes/rust-target-config.bbclass | |||
| @@ -360,7 +360,7 @@ def rust_gen_target(d, thing, wd, arch): | |||
| 360 | json.dump(tspec, f, indent=4) | 360 | json.dump(tspec, f, indent=4) |
| 361 | 361 | ||
| 362 | # These are accounted for in tmpdir path names so don't need to be in the task sig | 362 | # These are accounted for in tmpdir path names so don't need to be in the task sig |
| 363 | rust_gen_target[vardepsexclude] += "RUST_HOST_SYS RUST_TARGET_SYS ABIEXTENSION llvm_cpu" | 363 | rust_gen_target[vardepsexclude] += "ABIEXTENSION llvm_cpu" |
| 364 | 364 | ||
| 365 | do_rust_gen_targets[vardeps] += "DATA_LAYOUT TARGET_ENDIAN TARGET_POINTER_WIDTH TARGET_C_INT_WIDTH MAX_ATOMIC_WIDTH FEATURES" | 365 | do_rust_gen_targets[vardeps] += "DATA_LAYOUT TARGET_ENDIAN TARGET_POINTER_WIDTH TARGET_C_INT_WIDTH MAX_ATOMIC_WIDTH FEATURES" |
| 366 | 366 | ||
diff --git a/meta/classes/rust.bbclass b/meta/classes/rust.bbclass index 5c8938d09f..f20e063c5b 100644 --- a/meta/classes/rust.bbclass +++ b/meta/classes/rust.bbclass | |||
| @@ -2,7 +2,7 @@ inherit rust-common | |||
| 2 | 2 | ||
| 3 | RUSTC = "rustc" | 3 | RUSTC = "rustc" |
| 4 | 4 | ||
| 5 | RUSTC_ARCHFLAGS += "--target=${HOST_SYS} ${RUSTFLAGS}" | 5 | RUSTC_ARCHFLAGS += "--target=${RUST_HOST_SYS} ${RUSTFLAGS}" |
| 6 | 6 | ||
| 7 | def rust_base_dep(d): | 7 | def rust_base_dep(d): |
| 8 | # Taken from meta/classes/base.bbclass `base_dep_prepend` and modified to | 8 | # Taken from meta/classes/base.bbclass `base_dep_prepend` and modified to |
| @@ -37,7 +37,7 @@ HOST_CFLAGS ?= "${CFLAGS}" | |||
| 37 | HOST_CXXFLAGS ?= "${CXXFLAGS}" | 37 | HOST_CXXFLAGS ?= "${CXXFLAGS}" |
| 38 | HOST_CPPFLAGS ?= "${CPPFLAGS}" | 38 | HOST_CPPFLAGS ?= "${CPPFLAGS}" |
| 39 | 39 | ||
| 40 | rustlib_suffix="${TUNE_ARCH}${TARGET_VENDOR}-${TARGET_OS}/rustlib/${HOST_SYS}/lib" | 40 | rustlib_suffix="${TUNE_ARCH}${TARGET_VENDOR}-${TARGET_OS}/rustlib/${RUST_HOST_SYS}/lib" |
| 41 | # Native sysroot standard library path | 41 | # Native sysroot standard library path |
| 42 | rustlib_src="${prefix}/lib/${rustlib_suffix}" | 42 | rustlib_src="${prefix}/lib/${rustlib_suffix}" |
| 43 | # Host sysroot standard library path | 43 | # Host sysroot standard library path |
