Skip to content

Archlinux Kernel based on different schedulers and some other performance improvements.

Rust: Add in packaging a check, if rust files are present

Peter Jungdf91b3c096e1
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD
index f495a1e3..0e3d223b 100644
--- a/linux-cachyos-bmq/PKGBUILD
+++ b/linux-cachyos-bmq/PKGBUILD
@@ -582,9 +582,13 @@ _package-headers() {
echo "Installing KConfig files..."
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
- if ! _is_lto_kernel; then
- echo "Installing Rust files..."
+ # Install .rmeta files if they exist
+ if compgen -G "rust/*.rmeta" 1>/dev/null; then
install -Dt "$builddir/rust" -m644 rust/*.rmeta
+ fi
+
+ # Install .so files if they exist
+ if compgen -G "rust/*.so" 1>/dev/null; then
install -Dt "$builddir/rust" rust/*.so
fi
diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD
index 91163f0e..4c8c4363 100644
--- a/linux-cachyos-bore/PKGBUILD
+++ b/linux-cachyos-bore/PKGBUILD
@@ -582,9 +582,13 @@ _package-headers() {
echo "Installing KConfig files..."
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
- if ! _is_lto_kernel; then
- echo "Installing Rust files..."
+ # Install .rmeta files if they exist
+ if compgen -G "rust/*.rmeta" 1>/dev/null; then
install -Dt "$builddir/rust" -m644 rust/*.rmeta
+ fi
+
+ # Install .so files if they exist
+ if compgen -G "rust/*.so" 1>/dev/null; then
install -Dt "$builddir/rust" rust/*.so
fi
diff --git a/linux-cachyos-deckify/PKGBUILD b/linux-cachyos-deckify/PKGBUILD
index c556b548..499a036d 100644
--- a/linux-cachyos-deckify/PKGBUILD
+++ b/linux-cachyos-deckify/PKGBUILD
@@ -583,9 +583,13 @@ _package-headers() {
echo "Installing KConfig files..."
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
- if ! _is_lto_kernel; then
- echo "Installing Rust files..."
+ # Install .rmeta files if they exist
+ if compgen -G "rust/*.rmeta" 1>/dev/null; then
install -Dt "$builddir/rust" -m644 rust/*.rmeta
+ fi
+
+ # Install .so files if they exist
+ if compgen -G "rust/*.so" 1>/dev/null; then
install -Dt "$builddir/rust" rust/*.so
fi
diff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILD
index 051e5618..176e3bc0 100644
--- a/linux-cachyos-eevdf/PKGBUILD
+++ b/linux-cachyos-eevdf/PKGBUILD
@@ -582,9 +582,13 @@ _package-headers() {
echo "Installing KConfig files..."
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
- if ! _is_lto_kernel; then
- echo "Installing Rust files..."
+ # Install .rmeta files if they exist
+ if compgen -G "rust/*.rmeta" 1>/dev/null; then
install -Dt "$builddir/rust" -m644 rust/*.rmeta
+ fi
+
+ # Install .so files if they exist
+ if compgen -G "rust/*.so" 1>/dev/null; then
install -Dt "$builddir/rust" rust/*.so
fi
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index 9cbb35d8..823af23c 100644
--- a/linux-cachyos-rc/PKGBUILD
+++ b/linux-cachyos-rc/PKGBUILD
@@ -652,9 +652,13 @@ _package-headers() {
echo "Installing KConfig files..."
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
- if ! _is_lto_kernel; then
- echo "Installing Rust files..."
+ # Install .rmeta files if they exist
+ if compgen -G "rust/*.rmeta" 1>/dev/null; then
install -Dt "$builddir/rust" -m644 rust/*.rmeta
+ fi
+
+ # Install .so files if they exist
+ if compgen -G "rust/*.so" 1>/dev/null; then
install -Dt "$builddir/rust" rust/*.so
fi
diff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILD
index 5b0214c1..01816045 100644
--- a/linux-cachyos-rt-bore/PKGBUILD
+++ b/linux-cachyos-rt-bore/PKGBUILD
@@ -582,9 +582,13 @@ _package-headers() {
echo "Installing KConfig files..."
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
- if ! _is_lto_kernel; then
- echo "Installing Rust files..."
+ # Install .rmeta files if they exist
+ if compgen -G "rust/*.rmeta" 1>/dev/null; then
install -Dt "$builddir/rust" -m644 rust/*.rmeta
+ fi
+
+ # Install .so files if they exist
+ if compgen -G "rust/*.so" 1>/dev/null; then
install -Dt "$builddir/rust" rust/*.so
fi
diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILD
index e43f2d78..cef39cd7 100644
--- a/linux-cachyos-server/PKGBUILD
+++ b/linux-cachyos-server/PKGBUILD
@@ -578,9 +578,13 @@ _package-headers() {
echo "Installing KConfig files..."
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
- if ! _is_lto_kernel; then
- echo "Installing Rust files..."
+ # Install .rmeta files if they exist
+ if compgen -G "rust/*.rmeta" 1>/dev/null; then
install -Dt "$builddir/rust" -m644 rust/*.rmeta
+ fi
+
+ # Install .so files if they exist
+ if compgen -G "rust/*.so" 1>/dev/null; then
install -Dt "$builddir/rust" rust/*.so
fi
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index 3c1ad7c4..d1fd84e2 100644
--- a/linux-cachyos/PKGBUILD
+++ b/linux-cachyos/PKGBUILD
@@ -648,9 +648,13 @@ _package-headers() {
echo "Installing KConfig files..."
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
- if ! _is_lto_kernel; then
- echo "Installing Rust files..."
+ # Install .rmeta files if they exist
+ if compgen -G "rust/*.rmeta" 1>/dev/null; then
install -Dt "$builddir/rust" -m644 rust/*.rmeta
+ fi
+
+ # Install .so files if they exist
+ if compgen -G "rust/*.so" 1>/dev/null; then
install -Dt "$builddir/rust" rust/*.so
fi