]> code.ossystems Code Review - openembedded-core.git/commit
rust-common.bbclass: make sure ccache exist
authorKai Kang <kai.kang@windriver.com>
Fri, 17 Sep 2021 13:14:38 +0000 (21:14 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Sep 2021 10:33:03 +0000 (11:33 +0100)
commit46575e0d5b9e722558b64e22ed928e6d7b2c654a
treeb248db376ab97a842712e5ab68cf36ede7745cb7
parent1753a8d8fd2e9d98255beb81428f70cdf3421321
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.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rust-common.bbclass