-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from ublue-os/enable-xbox
feat: add xbox controller kmods
- Loading branch information
Showing
9 changed files
with
126 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
|
||
set -oeux pipefail | ||
|
||
|
||
cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/negativo17-fedora-steam.repo /etc/yum.repos.d/ | ||
|
||
ARCH="$(rpm -E '%_arch')" | ||
KERNEL="$(rpm -q kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" | ||
RELEASE="$(rpm -E '%fedora')" | ||
|
||
|
||
### BUILD xone (succeed or fail-fast with debug output) | ||
rpm-ostree install \ | ||
akmod-xone-*.fc${RELEASE}.${ARCH} | ||
akmods --force --kernels "${KERNEL}" --kmod xone | ||
modinfo /usr/lib/modules/${KERNEL}/extra/xone/xone-{dongle,gip-chatpad,gip-gamepad,gip-guitar,gip-headset,gip,wired}.ko.xz > /dev/null \ | ||
|| (find /var/cache/akmods/xone/ -name \*.log -print -exec cat {} \; && exit 1) | ||
|
||
rm -f /etc/yum.repos.d/fedora-steam.repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
|
||
set -oeux pipefail | ||
|
||
|
||
cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/negativo17-fedora-steam.repo /etc/yum.repos.d/ | ||
|
||
ARCH="$(rpm -E '%_arch')" | ||
KERNEL="$(rpm -q kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')" | ||
RELEASE="$(rpm -E '%fedora')" | ||
|
||
|
||
### BUILD xpadneo (succeed or fail-fast with debug output) | ||
rpm-ostree install \ | ||
akmod-xpadneo-*.fc${RELEASE}.${ARCH} | ||
akmods --force --kernels "${KERNEL}" --kmod xpadneo | ||
modinfo /usr/lib/modules/${KERNEL}/extra/xpadneo/hid-xpadneo.ko.xz > /dev/null \ | ||
|| (find /var/cache/akmods/xpadneo/ -name \*.log -print -exec cat {} \; && exit 1) | ||
|
||
rm -f /etc/yum.repos.d/fedora-steam.repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
set -oeux pipefail | ||
|
||
|
||
### BUILD UBLUE AKMODS-ADDONS RPM | ||
#sed -i "s@gpgcheck=0@gpgcheck=1@" /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/negativo17-fedora-steam.repo | ||
|
||
install -D /etc/pki/akmods/certs/public_key.der /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/public_key.der | ||
rpmbuild -ba \ | ||
--define '_topdir /tmp/ublue-os-akmods-addons/rpmbuild' \ | ||
--define '%_tmppath %{_topdir}/tmp' \ | ||
/tmp/ublue-os-akmods-addons/ublue-os-akmods-addons.spec |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Name: ublue-os-akmods-addons | ||
Version: 0.2 | ||
Release: 1%{?dist} | ||
Summary: Signing key and repos for ublue os akmods | ||
|
||
License: MIT | ||
URL: https://github.com/ublue-os/akmods | ||
|
||
BuildArch: noarch | ||
Supplements: mokutil policycoreutils | ||
|
||
Source0: public_key.der | ||
Source1: negativo17-fedora-steam.repo | ||
|
||
%description | ||
Adds the signing key for importing with mokutil to enable secure boot for kernel modules and repo files required to install akmod dependencies. | ||
|
||
%prep | ||
%setup -q -c -T | ||
|
||
|
||
%build | ||
# Have different name for *.der in case kmodgenca is needed for creating more keys | ||
install -Dm0644 %{SOURCE0} %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/pki/akmods/certs/akmods-ublue.der | ||
install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/yum.repos.d/negativo17-fedora-steam.repo | ||
|
||
sed -i 's@enabled=1@enabled=0@g' %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/yum.repos.d/negativo17-fedora-steam.repo | ||
|
||
install -Dm0644 %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/pki/akmods/certs/akmods-ublue.der %{buildroot}%{_sysconfdir}/pki/akmods/certs/akmods-ublue.der | ||
install -Dm0644 %{buildroot}%{_datadir}/ublue-os/%{_sysconfdir}/yum.repos.d/negativo17-fedora-steam.repo %{buildroot}%{_sysconfdir}/yum.repos.d/negativo17-fedora-steam.repo | ||
|
||
%files | ||
%attr(0644,root,root) %{_datadir}/ublue-os/%{_sysconfdir}/pki/akmods/certs/akmods-ublue.der | ||
%attr(0644,root,root) %{_datadir}/ublue-os/%{_sysconfdir}/yum.repos.d/negativo17-fedora-steam.repo | ||
%attr(0644,root,root) %{_sysconfdir}/pki/akmods/certs/akmods-ublue.der | ||
%attr(0644,root,root) %{_sysconfdir}/yum.repos.d/negativo17-fedora-steam.repo | ||
|
||
%changelog | ||
* Tue May 30 2023 Benjamin Sherman <[email protected]> - 0.2 | ||
- Add negativo17 fedora-steam repo to enable xbox controllers | ||
|
||
* Fri May 18 2023 David Hoell - 0.1 | ||
- Add key for enrolling ublue kernel modules for secure boot |
This file was deleted.
Oops, something went wrong.