generated from archlinux/template
Add Rust buildmetadata for out-of-tree kernel modules
This adds support for building out-of-tree kernel modules written in Rust. See https://github.com/Rust-for-Linux/rust-out-of-tree-module.
This commit is contained in:
parent
edd4eaf18c
commit
59f987c713
6
PKGBUILD
6
PKGBUILD
@ -177,6 +177,12 @@ _package-headers() {
|
||||
echo "Installing KConfig files..."
|
||||
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
|
||||
|
||||
# Rust support
|
||||
echo "Installing Rust files..."
|
||||
install -Dt "$builddir/rust" -m644 scripts/target.json
|
||||
install -Dt "$builddir/rust" -m644 rust/*.rmeta
|
||||
install -Dt "$builddir/rust" -m644 rust/*.so
|
||||
|
||||
echo "Removing unneeded architectures..."
|
||||
local arch
|
||||
for arch in "$builddir"/arch/*/; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user