diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-05 12:28:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-08 15:44:20 +0100 |
commit | 5c45b73c8fa445b5192bb9fac1bc80b038b44c0d (patch) | |
tree | 70558676b6ea7eed370b09e81ed0be5d62371e0f /meta/recipes-devtools/rust/rust.inc | |
parent | 411304c3e99f6d3320cb307a61b5d03eda9f7b4d (diff) | |
download | poky-5c45b73c8fa445b5192bb9fac1bc80b038b44c0d.tar.gz |
rust: Switch to use RUST_XXX_SYS consistently
The code was using a mixture of XXX_SYS and RUST_XXX_SYS. Use
RUST_XXX_SYS consistently and add the variables to the global exclsion
on signatures as they're reflected in the directory triplets and trying
to filter them out the hashes separately is too painful.
(From OE-Core rev: ee0c0fdf9c1eba9eece6ed1293fda25bf18964b3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust/rust.inc')
-rw-r--r-- | meta/recipes-devtools/rust/rust.inc | 10 |
1 files changed, 5 insertions, 5 deletions
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 | } |