Change from hard coded versions to hopefully find what is needed to build
Some checks failed
bluebuild / Build Custom Image (recipe.yml) (pull_request) Failing after 3m49s

This commit is contained in:
2025-06-23 21:40:41 -04:00
parent cc7b6eee4f
commit 3fc537ef5e

View File

@@ -3,18 +3,14 @@
# Tell build process to exit if there are any errors.
set -oue pipefail
echo "INFO: kernel module"
dnf list --installed | grep kernel.x86_64
echo "INFO: grab kernel module"
KERNEL_VER=${ls /lib/modules | head -n 1}
echo $KERNEL_VER
echo "INFO: uname -r output:"
uname -r
echo "INFO: list /lib/modules/"
ls /lib/modules
echo "INFO: xpad modules in /usr/src"
ls /usr/src | grep xpad
echo "INFO: grab xpad modules"
MODULE_VER=${ls /usr/src | grep xpadneo | sed 's/-/\//'}
echo $MODULE_VER
echo "INFO: build and install xpadneo"
sudo dkms build -m xpadneo/0.9.7 -k 6.14.11-300.fc42.x86_64
sudo dkms install -m xpadneo/0.9.7 -k 6.14.11-300.fc42.x86_64
sudo dkms build -m $MODULE_VER -k $KERNEL_VER
sudo dkms install -m $MODULE_VER -k $KERNEL_VER