refactor: include rust in sdk, add rust-src

This commit is contained in:
2026-02-28 00:26:08 +01:00
parent db8d10d036
commit 4c517e1aec
2 changed files with 7 additions and 4 deletions

View File

@@ -41,7 +41,5 @@ IMAGE_INSTALL:remove = " gtk+ gtk+3 adwaita-icon-theme "
# wlr-randr l3afpad wlopm cairo-egl webkitgtk
# add tools to toolchains
TOOLCHAIN_HOST_TASK:append = " nativesdk-glib-2.0 nativesdk-glib-2.0-codegen nativesdk-glib-2.0-utils "
# packagegroup-rust-cross-canadian-${MACHINE} nativesdk-rust-rustdoc
TOOLCHAIN_TARGET_TASK:append = " gobject-introspection "
# libstd-rs
TOOLCHAIN_HOST_TASK:append = " nativesdk-glib-2.0 nativesdk-glib-2.0-codegen nativesdk-glib-2.0-utils packagegroup-rust-cross-canadian-${MACHINE} nativesdk-rust-rustdoc "
TOOLCHAIN_TARGET_TASK:append = " gobject-introspection libstd-rs "

View File

@@ -0,0 +1,5 @@
rust_do_install:append:class-nativesdk(){
install -d ${D}${libdir}/rustlib/src/rust/src/llvm-project
cp -rf ${S}/src/llvm-project/libunwind ${D}${libdir}/rustlib/src/rust/src/llvm-project/
cp -rf ${S}/library ${D}${libdir}/rustlib/src/rust/
}