diff options
-rw-r--r-- | system/steamos-xpad/Makefile | 2 | ||||
-rw-r--r-- | system/steamos-xpad/steamos-xpad.SlackBuild | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/system/steamos-xpad/Makefile b/system/steamos-xpad/Makefile index 97907b396763b..dd47b8423ee85 100644 --- a/system/steamos-xpad/Makefile +++ b/system/steamos-xpad/Makefile @@ -1,6 +1,6 @@ obj-m = steamos-xpad.o -KVERSION = $(shell uname -r) +KVERSION ?= $(shell uname -r) all: make -C /lib/modules/$(KVERSION)/build V=1 M=$(PWD) modules clean: diff --git a/system/steamos-xpad/steamos-xpad.SlackBuild b/system/steamos-xpad/steamos-xpad.SlackBuild index da8bd5d616b7e..96a30e0fb8e91 100644 --- a/system/steamos-xpad/steamos-xpad.SlackBuild +++ b/system/steamos-xpad/steamos-xpad.SlackBuild @@ -30,12 +30,12 @@ BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -KERNEL=$(uname -r) +KERNEL=${KERNEL:-$(uname -r)} PKGVER=${VERSION}_$(echo $KERNEL | tr - _) if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -67,6 +67,7 @@ sed -e 's/"xpad"/"steamos-xpad"/' xpad.c > steamos-xpad.c # Makefile is from the ARCH AUR steamos-xpad-dkms located here: # https://aur.archlinux.org/packages/steamos-xpad-dkms/ +export KVERSION="$KERNEL" env -u ARCH make mkdir -p $PKG/lib/modules/$KERNEL/kernel/drivers/input/joystick |