summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2021-09-17 21:14:38 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-19 11:33:14 +0100
commita0a9df0e8b5f62e69b65fa9f7129ac0954a45691 (patch)
tree0de6ba16e5563039ea5a6fa88fb80bd620e6d858
parent4335ee7063162bfec6e341866f1803623fbefd6c (diff)
downloadpoky-a0a9df0e8b5f62e69b65fa9f7129ac0954a45691.tar.gz
rust-common.bbclass: make sure ccache exist
It fails to run task rust_create_wrappers of recipe which inherit rust-common.bbclass such as rust-hello-world if no host ccache exists: | DEBUG: Executing shell function do_rust_create_wrappers | /path/to/project/tmp-glibc/work/core2-64-wrs-linux/rust-hello-world/git-r0/temp/run.do_rust_create_wrappers.3422: line 179: ccache: command not found Run task rust_create_wrappers before do_prepare_recipe_sysroot to make sure required tools such as ccache exist. (From OE-Core rev: 46575e0d5b9e722558b64e22ed928e6d7b2c654a) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/rust-common.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/rust-common.bbclass b/meta/classes/rust-common.bbclass
index a8803d61b6..f7f9cbbb2e 100644
--- a/meta/classes/rust-common.bbclass
+++ b/meta/classes/rust-common.bbclass
@@ -176,5 +176,5 @@ do_rust_create_wrappers () {
176 ${BUILD_CC} ${COREBASE}/meta/files/rust-ccld-wrapper.c -o ${RUST_TARGET_CCLD} 176 ${BUILD_CC} ${COREBASE}/meta/files/rust-ccld-wrapper.c -o ${RUST_TARGET_CCLD}
177} 177}
178 178
179addtask rust_create_wrappers before do_configure after do_patch 179addtask rust_create_wrappers before do_configure after do_patch do_prepare_recipe_sysroot
180do_rust_create_wrappers[dirs] += "${WRAPPER_DIR}" 180do_rust_create_wrappers[dirs] += "${WRAPPER_DIR}"