Compare commits

...

18 Commits

Author SHA1 Message Date
Willow C Reed 079a4186d7 add update script 2026-05-23 14:47:32 -06:00
Cypress Reed 92478db336 Merge branch 'frawhide' into willow/add-mediatek-mt7927-dkms 2026-05-21 22:16:30 -06:00
Willow C Reed 1e262b5862 use path macros and %make_install 2026-05-21 22:16:15 -06:00
Willow C Reed ba96ff48f6 i think files looks good now 2026-05-21 18:47:34 -06:00
Willow C Reed ca8f918570 oh it was wrong in the files section 2026-05-21 18:42:46 -06:00
Willow C Reed 635c9d7416 maybe? 2026-05-21 18:38:57 -06:00
Willow C Reed 3722b5e69e i forgot to update paths lol 2026-05-21 18:31:43 -06:00
Cypress Reed b668c8e0d7 Merge branch 'frawhide' into willow/add-mediatek-mt7927-dkms 2026-05-21 18:27:57 -06:00
Willow C Reed 29815fab37 ohhh i'm being silly 2026-05-21 18:27:31 -06:00
Willow C Reed a19d078e30 edit version string to match pkgbuild 2026-05-21 18:16:22 -06:00
Willow C Reed 1455efdead if this doesn't work i'm going to lose my mind 2026-05-21 17:34:30 -06:00
Willow C Reed fd45dd5c5d maybe this will work? 2026-05-21 17:29:13 -06:00
Willow C Reed 9b29f3a8b6 remove the weird -1 thing from the autosetup 2026-05-21 17:25:26 -06:00
Willow C Reed 3755f07ddb trying a different version scheme again 2026-05-21 17:22:22 -06:00
Willow C Reed aaf9a8861c update version scheme 2026-05-21 17:19:39 -06:00
Willow C Reed e8f314cab1 rename spec lol 2026-05-21 17:15:07 -06:00
Cypress Reed b09a5344d0 Merge branch 'frawhide' into willow/add-mediatek-mt7927-dkms 2026-05-21 17:12:38 -06:00
Willow C Reed 8acb713aa8 add mediatek-mt7927-dkms 2026-05-21 17:11:31 -06:00
3 changed files with 80 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "dkms-mediatek-mt7927.spec"
}
labels {
updbranch = 1
mock = 1
}
}
@@ -0,0 +1,69 @@
%global modulename mediatek-mt7927
Name: dkms-%{modulename}
Version: 2.11
Release: 1%{?dist}
Summary: DKMS WiFi 7 and Bluetooth 5.4 drivers for MediaTek MT7927 (Filogic 380)
License: GPL-2.0-only
URL: https://github.com/jetm/mediatek-mt7927-dkms
BuildArch: noarch
Source0: https://github.com/jetm/mediatek-mt7927-dkms/archive/refs/tags/v%{version}-1.tar.gz
BuildRequires: make
BuildRequires: curl
BuildRequires: python3
Requires: dkms
Requires(post): dkms
Requires(preun): dkms
Conflicts: btusb-mt7925-dkms
Conflicts: btusb-mt7927-dkms
Packager: Willow C Reed <terra@willowidk.dev>
%description
DKMS package for MediaTek MT7927 (Filogic 380) combo WiFi 7 + BT 5.4.
Builds out-of-tree btusb/btmtk (Bluetooth) and mt76 (WiFi) kernel modules
with device IDs and patches not yet in mainline Linux. Supports kernels 6.17+.
When MT7927 support is merged into mainline kernels and linux-firmware,
remove this package to use the in-tree drivers.
%prep
%autosetup -n %{modulename}-dkms-%{version}-1
%build
%__make download
%__make sources SRCDIR=%{_builddir}/%{modulename}-dkms-%{version}-1/_build
%install
%make_install \
SRCDIR=%{_builddir}/%{modulename}-dkms-%{version}-1/_build \
DESTDIR=%{buildroot} \
VERSION=%{version}
%post
dkms add -m %{modulename} -v %{version} -q --rpm_safe_upgrade || :
dkms build -m %{modulename} -v %{version} -q || :
dkms install -m %{modulename} -v %{version} -q --force || :
%preun
dkms remove -m %{modulename} -v %{version} -q --all --rpm_safe_upgrade || :
%files
%{_usrsrc}/%{modulename}-%{version}
%dir %{_libdir}/firmware/mediatek
%dir %{_libdir}/firmware/mediatek/mt7927
%{_libdir}/firmware/mediatek/mt7927/BT_RAM_CODE_MT6639_2_1_hdr.bin
%{_libdir}/firmware/mediatek/mt7927/WIFI_MT6639_PATCH_MCU_2_1_hdr.bin
%{_libdir}/firmware/mediatek/mt7927/WIFI_RAM_CODE_MT6639_2_1.bin
%changelog
* Thu May 21 2026 Willow C Reed <willow@willowidk.dev>
- Port to Terra from https://github.com/jetm/mediatek-mt7927-dkms
* Sun Mar 29 2026 Eder Sánchez <eder.sanchez@pm.me> - 2.9-1
- See CHANGELOG.md for detailed release notes
@@ -0,0 +1 @@
rpm.version(gh("jetm/mediatek-mt7927-dkms"));