diff options
Diffstat (limited to 'meta/recipes-devtools')
| -rw-r--r-- | meta/recipes-devtools/rust/libstd-rs.inc | 4 | ||||
| -rw-r--r-- | meta/recipes-devtools/rust/rust.inc | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/meta/recipes-devtools/rust/libstd-rs.inc b/meta/recipes-devtools/rust/libstd-rs.inc index 987956344a..d49383ced5 100644 --- a/meta/recipes-devtools/rust/libstd-rs.inc +++ b/meta/recipes-devtools/rust/libstd-rs.inc | |||
| @@ -35,6 +35,6 @@ do_install () { | |||
| 35 | # With the incremental build support added in 1.24, the libstd deps directory also includes dependency | 35 | # With the incremental build support added in 1.24, the libstd deps directory also includes dependency |
| 36 | # files that get installed. Those are really only needed to incrementally rebuild the libstd library | 36 | # files that get installed. Those are really only needed to incrementally rebuild the libstd library |
| 37 | # itself and don't need to be installed. | 37 | # itself and don't need to be installed. |
| 38 | rm -f ${B}/${TARGET_SYS}/${BUILD_DIR}/deps/*.d | 38 | rm -f ${B}/${RUST_TARGET_SYS}/${BUILD_DIR}/deps/*.d |
| 39 | cp ${B}/${TARGET_SYS}/${BUILD_DIR}/deps/* ${D}${rustlibdir} | 39 | cp ${B}/${RUST_TARGET_SYS}/${BUILD_DIR}/deps/* ${D}${rustlibdir} |
| 40 | } | 40 | } |
diff --git a/meta/recipes-devtools/rust/rust.inc b/meta/recipes-devtools/rust/rust.inc index ecb057ad3b..aa067932fd 100644 --- a/meta/recipes-devtools/rust/rust.inc +++ b/meta/recipes-devtools/rust/rust.inc | |||
| @@ -79,7 +79,7 @@ python do_configure() { | |||
| 79 | config = configparser.RawConfigParser() | 79 | config = configparser.RawConfigParser() |
| 80 | 80 | ||
| 81 | # [target.ARCH-poky-linux] | 81 | # [target.ARCH-poky-linux] |
| 82 | target_section = "target.{}".format(d.getVar('TARGET_SYS', True)) | 82 | target_section = "target.{}".format(d.getVar('RUST_TARGET_SYS', True)) |
| 83 | config.add_section(target_section) | 83 | config.add_section(target_section) |
| 84 | 84 | ||
| 85 | llvm_config = d.expand("${YOCTO_ALTERNATE_EXE_PATH}") | 85 | llvm_config = d.expand("${YOCTO_ALTERNATE_EXE_PATH}") |
| @@ -128,11 +128,11 @@ python do_configure() { | |||
| 128 | config.set("build", "vendor", e(True)) | 128 | config.set("build", "vendor", e(True)) |
| 129 | 129 | ||
| 130 | if not "targets" in locals(): | 130 | if not "targets" in locals(): |
| 131 | targets = [d.getVar("TARGET_SYS", True)] | 131 | targets = [d.getVar("RUST_TARGET_SYS", True)] |
| 132 | config.set("build", "target", e(targets)) | 132 | config.set("build", "target", e(targets)) |
| 133 | 133 | ||
| 134 | if not "hosts" in locals(): | 134 | if not "hosts" in locals(): |
| 135 | hosts = [d.getVar("HOST_SYS", True)] | 135 | hosts = [d.getVar("RUST_HOST_SYS", True)] |
| 136 | config.set("build", "host", e(hosts)) | 136 | config.set("build", "host", e(hosts)) |
| 137 | 137 | ||
| 138 | # We can't use BUILD_SYS since that is something the rust snapshot knows | 138 | # We can't use BUILD_SYS since that is something the rust snapshot knows |
| @@ -181,10 +181,10 @@ do_compile () { | |||
| 181 | 181 | ||
| 182 | rust_do_install () { | 182 | rust_do_install () { |
| 183 | mkdir -p ${D}${bindir} | 183 | mkdir -p ${D}${bindir} |
| 184 | cp build/${HOST_SYS}/stage2/bin/* ${D}${bindir} | 184 | cp build/${RUST_HOST_SYS}/stage2/bin/* ${D}${bindir} |
| 185 | 185 | ||
| 186 | mkdir -p ${D}${libdir}/rustlib | 186 | mkdir -p ${D}${libdir}/rustlib |
| 187 | cp -pRd build/${HOST_SYS}/stage2/lib/* ${D}${libdir} | 187 | cp -pRd build/${RUST_HOST_SYS}/stage2/lib/* ${D}${libdir} |
| 188 | # Remove absolute symlink so bitbake doesn't complain | 188 | # Remove absolute symlink so bitbake doesn't complain |
| 189 | rm -f ${D}${libdir}/rustlib/src/rust | 189 | rm -f ${D}${libdir}/rustlib/src/rust |
| 190 | } | 190 | } |
