From 59f987c713f8e7e02688f372f6925c4ff4b46c22 Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Sun, 16 Mar 2025 21:32:06 +0100 Subject: [PATCH] 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. --- PKGBUILD | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PKGBUILD b/PKGBUILD index 92f4802..82e2b03 100644 --- a/PKGBUILD +++ b/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