diff --git a/anda/system/xpad-noone/akmod/0000.patch b/anda/system/xpad-noone/akmod/0000.patch deleted file mode 100644 index 59826a8f7f..0000000000 --- a/anda/system/xpad-noone/akmod/0000.patch +++ /dev/null @@ -1,43 +0,0 @@ ---- a/xpad.c -+++ b/xpad.c -@@ -117,6 +117,7 @@ static const struct xpad_device { - u8 xtype; - } xpad_device[] = { - { 0x0079, 0x18d4, "GPD Win 2 X-Box Controller", 0, XTYPE_XBOX360 }, -+ { 0x16d0, 0x10bc, "Cyborg Compact Gamingkeypad", 0, XTYPE_XBOX360 }, - { 0x03eb, 0xff01, "Wooting One (Legacy)", 0, XTYPE_XBOX360 }, - { 0x03eb, 0xff02, "Wooting Two (Legacy)", 0, XTYPE_XBOX360 }, - { 0x044f, 0x0f00, "Thrustmaster Wheel", 0, XTYPE_XBOX }, -@@ -303,6 +304,7 @@ static const struct xpad_device { - { 0x24c6, 0xfafe, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 }, - { 0x2563, 0x058d, "OneXPlayer Gamepad", 0, XTYPE_XBOX360 }, - { 0x2dc8, 0x3106, "8BitDo Pro 2 Wired Controller", 0, XTYPE_XBOX360 }, -+ { 0x2dc8, 0x3109, "8BitDo Ultimate Wireless Bluetooth", 0, XTYPE_XBOX360 }, - { 0x31e3, 0x1100, "Wooting One", 0, XTYPE_XBOX360 }, - { 0x31e3, 0x1200, "Wooting Two", 0, XTYPE_XBOX360 }, - { 0x31e3, 0x1210, "Wooting Lekker", 0, XTYPE_XBOX360 }, -@@ -311,7 +313,8 @@ static const struct xpad_device { - { 0x31e3, 0x1310, "Wooting 60HE (ARM)", 0, XTYPE_XBOX360 }, - { 0x3285, 0x0607, "Nacon GC-100", 0, XTYPE_XBOX360 }, - { 0x3537, 0x1004, "GameSir T4 Kaleid", 0, XTYPE_XBOX360 }, -+ { 0x413d, 0x2104, "Black Shark Green Ghost Gamepad", 0, XTYPE_XBOX360 }, - { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX }, - { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX }, - { 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN } - }; -@@ -384,6 +387,7 @@ static const signed short xpad_abs_triggers[] = { - - static const struct usb_device_id xpad_table[] = { - { USB_INTERFACE_INFO('X', 'B', 0) }, /* Xbox USB-IF not-approved class */ -+ XPAD_XBOX360_VENDOR(0x16d0), /* Azeron Custom Gamingkeypad Vendor */ - XPAD_XBOX360_VENDOR(0x0079), /* GPD Win 2 controller */ - XPAD_XBOX360_VENDOR(0x03eb), /* Wooting Keyboards (Legacy) */ - XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster Xbox 360 controllers */ -@@ -420,6 +424,7 @@ - XPAD_XBOX360_VENDOR(0x31e3), /* Wooting Keyboards */ - XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */ - XPAD_XBOX360_VENDOR(0x3537), /* GameSir Controllers */ -+ XPAD_XBOX360_VENDOR(0x413d), /* Black Shark Green Ghost Controller */ - { } - }; - diff --git a/anda/system/xpad-noone/akmod/xpad-noone-kmod.spec b/anda/system/xpad-noone/akmod/xpad-noone-kmod.spec index 7ae74e4dcd..f7fabe9b46 100644 --- a/anda/system/xpad-noone/akmod/xpad-noone-kmod.spec +++ b/anda/system/xpad-noone/akmod/xpad-noone-kmod.spec @@ -10,13 +10,14 @@ This is the original upstream xpad driver from the Linux kernel with support for Name: %{modulename}-kmod Version: %{ver}^%{commitdate}git.%{shortcommit} -Release: 1%?dist +Release: 2%?dist License: GPL-2.0-or-later Summary: xpad driver with support for XBox One controllers removed URL: https://github.com/medusalix/xpad-noone Source0: %{url}/archive/%{commit}/%{modulename}-%{commit}.tar.gz#/%{modulename}-%{shortcommit}.tar.gz -# Extra support for controllers that register as XBox 360 controllers -Patch0: 0000.patch +# Fix kmod compilation on kernel 6.18+ +Patch0: https://github.com/medusalix/xpad-noone/pull/8.patch +Patch1: https://github.com/medusalix/xpad-noone/pull/9.patch BuildRequires: gcc BuildRequires: kmodtool BuildRequires: make diff --git a/anda/system/xpad-noone/dkms/0000.patch b/anda/system/xpad-noone/dkms/0000.patch deleted file mode 100644 index 59826a8f7f..0000000000 --- a/anda/system/xpad-noone/dkms/0000.patch +++ /dev/null @@ -1,43 +0,0 @@ ---- a/xpad.c -+++ b/xpad.c -@@ -117,6 +117,7 @@ static const struct xpad_device { - u8 xtype; - } xpad_device[] = { - { 0x0079, 0x18d4, "GPD Win 2 X-Box Controller", 0, XTYPE_XBOX360 }, -+ { 0x16d0, 0x10bc, "Cyborg Compact Gamingkeypad", 0, XTYPE_XBOX360 }, - { 0x03eb, 0xff01, "Wooting One (Legacy)", 0, XTYPE_XBOX360 }, - { 0x03eb, 0xff02, "Wooting Two (Legacy)", 0, XTYPE_XBOX360 }, - { 0x044f, 0x0f00, "Thrustmaster Wheel", 0, XTYPE_XBOX }, -@@ -303,6 +304,7 @@ static const struct xpad_device { - { 0x24c6, 0xfafe, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 }, - { 0x2563, 0x058d, "OneXPlayer Gamepad", 0, XTYPE_XBOX360 }, - { 0x2dc8, 0x3106, "8BitDo Pro 2 Wired Controller", 0, XTYPE_XBOX360 }, -+ { 0x2dc8, 0x3109, "8BitDo Ultimate Wireless Bluetooth", 0, XTYPE_XBOX360 }, - { 0x31e3, 0x1100, "Wooting One", 0, XTYPE_XBOX360 }, - { 0x31e3, 0x1200, "Wooting Two", 0, XTYPE_XBOX360 }, - { 0x31e3, 0x1210, "Wooting Lekker", 0, XTYPE_XBOX360 }, -@@ -311,7 +313,8 @@ static const struct xpad_device { - { 0x31e3, 0x1310, "Wooting 60HE (ARM)", 0, XTYPE_XBOX360 }, - { 0x3285, 0x0607, "Nacon GC-100", 0, XTYPE_XBOX360 }, - { 0x3537, 0x1004, "GameSir T4 Kaleid", 0, XTYPE_XBOX360 }, -+ { 0x413d, 0x2104, "Black Shark Green Ghost Gamepad", 0, XTYPE_XBOX360 }, - { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX }, - { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX }, - { 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN } - }; -@@ -384,6 +387,7 @@ static const signed short xpad_abs_triggers[] = { - - static const struct usb_device_id xpad_table[] = { - { USB_INTERFACE_INFO('X', 'B', 0) }, /* Xbox USB-IF not-approved class */ -+ XPAD_XBOX360_VENDOR(0x16d0), /* Azeron Custom Gamingkeypad Vendor */ - XPAD_XBOX360_VENDOR(0x0079), /* GPD Win 2 controller */ - XPAD_XBOX360_VENDOR(0x03eb), /* Wooting Keyboards (Legacy) */ - XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster Xbox 360 controllers */ -@@ -420,6 +424,7 @@ - XPAD_XBOX360_VENDOR(0x31e3), /* Wooting Keyboards */ - XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */ - XPAD_XBOX360_VENDOR(0x3537), /* GameSir Controllers */ -+ XPAD_XBOX360_VENDOR(0x413d), /* Black Shark Green Ghost Controller */ - { } - }; - diff --git a/anda/system/xpad-noone/dkms/dkms-xpad-noone.spec b/anda/system/xpad-noone/dkms/dkms-xpad-noone.spec index f7831a347e..6bb03e4cf0 100644 --- a/anda/system/xpad-noone/dkms/dkms-xpad-noone.spec +++ b/anda/system/xpad-noone/dkms/dkms-xpad-noone.spec @@ -8,14 +8,15 @@ This is the original upstream xpad driver from the Linux kernel with support for Name: dkms-%{modulename} Version: %{ver}^%{commitdate}git.%{shortcommit} -Release: 1%?dist +Release: 2%?dist License: GPL-2.0-or-later Summary: xpad driver with support for XBox One controllers removed URL: https://github.com/medusalix/xpad-noone Source0: %{url}/archive/%{commit}/%{modulename}-%{commit}.tar.gz#/%{modulename}-%{shortcommit}.tar.gz Source1: no-weak-modules.conf -# Extra support for controllers that register as XBox 360 controllers -Patch0: 0000.patch +# Fix kmod compilation on kernel 6.18+ +Patch0: https://github.com/medusalix/xpad-noone/pull/8.patch +Patch1: https://github.com/medusalix/xpad-noone/pull/9.patch Requires: %{modulename} = %{?epoch:%{epoch}:}%{version} Requires: dkms Conflicts: akmod-%{modulename} @@ -25,7 +26,7 @@ Packager: Gilver E. %description %_description %prep -%autosetup -n %{modulename}-%{commit} +%autosetup -n %{modulename}-%{commit} -p1 %build