mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 15:32:13 +02:00
rust: Add new varaible RUST_ENABLE_EXTRA_TOOLS
There is a need to enable some extra tools from the rust for the build and so this new variable will help for that This varaible then we can use during do_configure task to add overall values as per json format in build -> tools (From OE-Core rev: 136a25567499191b23a4d000a06bf83a473224ca) Signed-off-by: Ranjitsinh Rathod <ranjitsinh.rathod@kpit.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
bcbc1ad07a
commit
6ced2e7ca3
@@ -70,6 +70,10 @@ addtask do_test_compile after do_configure do_rust_gen_targets
|
||||
do_rust_setup_snapshot[dirs] += "${WORKDIR}/rust-snapshot"
|
||||
do_rust_setup_snapshot[vardepsexclude] += "UNINATIVE_LOADER"
|
||||
|
||||
# there is a need to enable some more rust tools for the project
|
||||
# We can extend a list of more tools via this variable
|
||||
RUST_ENABLE_EXTRA_TOOLS ?= "rust-demangler"
|
||||
|
||||
python do_configure() {
|
||||
import json
|
||||
import configparser
|
||||
@@ -141,7 +145,7 @@ python do_configure() {
|
||||
config.add_section("build")
|
||||
config.set("build", "submodules", e(False))
|
||||
config.set("build", "docs", e(False))
|
||||
config.set("build", "tools", ["rust-demangler",])
|
||||
config.set("build", "tools", e(d.getVar("RUST_ENABLE_EXTRA_TOOLS").split()))
|
||||
|
||||
rustc = d.expand("${WORKDIR}/rust-snapshot/bin/rustc")
|
||||
config.set("build", "rustc", e(rustc))
|
||||
|
||||
Reference in New Issue
Block a user