0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-03-02 09:35:53 +00:00
Lakka-LibreELEC/packages/linux-drivers/xpadneo/package.mk

32 lines
1.1 KiB
Makefile
Raw Normal View History

PKG_NAME="xpadneo"
2023-02-04 01:39:49 +01:00
PKG_VERSION="0.9.5"
PKG_SHA256="7518f75d7d30ae1c10ff110e7b066907a7e2c4586a670441d7c4bac9fc7afd52"
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/atar-axis/xpadneo"
2023-02-04 01:39:49 +01:00
PKG_URL="${PKG_SITE}/archive/refs/tags/v${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain linux"
2023-02-04 01:39:49 +01:00
PKG_NEED_UNPACK="${LINUX_DEPENDS}"
PKG_LONGDESC="Advanced Linux Driver for Xbox One Wireless Gamepad"
PKG_TOOLCHAIN="manual"
PKG_IS_KERNEL_PKG="yes"
pre_make_target() {
unset LDFLAGS
}
make_target() {
2023-02-04 01:39:49 +01:00
kernel_make -C $(kernel_path) M=${PKG_BUILD}/hid-xpadneo/src modules
}
makeinstall_target() {
2023-02-04 01:39:49 +01:00
mkdir -p ${INSTALL}/$(get_full_module_dir)/kernel/drivers/hid
cp -v ${PKG_BUILD}/hid-xpadneo/src/*.ko ${INSTALL}/$(get_full_module_dir)/kernel/drivers/hid/
2023-02-04 01:39:49 +01:00
mkdir -p ${INSTALL}/usr/lib/udev/rules.d
cp -v ${PKG_BUILD}/hid-xpadneo/etc-udev-rules.d/*.rules ${INSTALL}/usr/lib/udev/rules.d/
2023-02-04 01:39:49 +01:00
mkdir -p ${INSTALL}/usr/lib/modprobe.d
cp -v ${PKG_BUILD}/hid-xpadneo/etc-modprobe.d/*.conf ${INSTALL}/usr/lib/modprobe.d/
echo "options hid_xpadneo trigger_rumble_mode=2" >> ${INSTALL}/usr/lib/modprobe.d/xpadneo.conf
}