Upstream does not actually use or test it this way; if the goal
is to install items, then install target should be executed directly.
In particular, in latest rust release building stage 2 items has regressed
altogether (incorrect dependencies between rust-analyze tool and the
libs it needs) and no one noticed.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
FILES:${PN}-dev = ""
do_compile () {
- rust_runx build --stage 2
-}
-
-do_compile:append:class-target () {
- rust_runx build --stage 2 src/tools/clippy
- rust_runx build --stage 2 src/tools/rustfmt
-}
-
-do_compile:append:class-nativesdk () {
- rust_runx build --stage 2 src/tools/clippy
- rust_runx build --stage 2 src/tools/rustfmt
}
ALLOW_EMPTY:${PN} = "1"
rust_do_install:class-nativesdk() {
export PSEUDO_UNLOAD=1
rust_runx install
+ rust_runx install clippy
+ rust_runx install rustfmt
unset PSEUDO_UNLOAD
install -d ${D}${bindir}
rust_do_install:class-target() {
export PSEUDO_UNLOAD=1
rust_runx install
+ rust_runx install clippy
+ rust_runx install rustfmt
unset PSEUDO_UNLOAD
install -d ${D}${bindir}