Skip to content

Commit 6afbbf5

Browse files
samutoljamojetm
authored andcommitted
pkg: Distro-agnostic build system and bump to v2.4-1
Merge distro-agnostic build from samutoljamo (PR #29): - Makefile-based build replaces inline PKGBUILD logic - BT source pre-patched at build time, dkms-patchmodule.sh removed - extract_firmware.py reads ZIP directly (no unzip dependency) - Kbuild files split to flat repo root (AUR-compatible) - Upstream detection in dkms.conf skips BT build if mainlined - Makefile VERSION/MT76_KVER derived from dkms.conf/PKGBUILD
1 parent cf10fb1 commit 6afbbf5

14 files changed

Lines changed: 258 additions & 211 deletions

.SRCINFO

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pkgbase = mediatek-mt7927-dkms
22
pkgdesc = DKMS Bluetooth (MT6639) and WiFi (MT7925e/MT7902) modules for MediaTek MT7927 Filogic 380
3-
pkgver = 2.3
3+
pkgver = 2.4
44
pkgrel = 1
55
url = https://github.com/jetm/mediatek-mt7927-dkms
66
install = mediatek-mt7927-dkms.install
@@ -16,10 +16,8 @@ pkgbase = mediatek-mt7927-dkms
1616
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.19.6.tar.xz
1717
source = extract_firmware.py
1818
source = dkms.conf
19-
source = dkms-patchmodule.sh
2019
sha256sums = 4d9f3ff73214f68c0194ef02db9ca4b7ba713253ac1045441d4e9f352bc22e14
21-
sha256sums = e94c77671abe0d589faa01c1a9451f626b1fc45fb04f765b43fd0e126d01a436
22-
sha256sums = b6449dce574cd411eb5f17a740b68d5c62a164adae5e912a4bf2bf50ab4094e7
23-
sha256sums = bd29eefcec618ec17d6ff3b6521d8292a6e092c3cbbdd1fca93b63e4c86a7fec
20+
sha256sums = 5410e79d1c9170264769c7149a78bf588ec85245c1556833605fc1c4657ba37a
21+
sha256sums = a663197cf356fbaf3b91c78aa683ef62608c23ab8cde922e5d22d31ecf3310ce
2422

2523
pkgname = mediatek-mt7927-dkms

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
*.zip
33
src/
44
pkg/
5+
_build/
6+
linux-*.tar.xz
57
FINDINGS.md
68
openspec/
79
linux-driver-mediatek-mt7927-bluetooth/

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ All notable changes to the MediaTek MT7927 DKMS package are documented here.
55
Format: `v<pkgver>-<pkgrel>` where pkgver bumps for driver/patch changes
66
and pkgrel bumps for PKGBUILD packaging changes.
77

8+
## [Unreleased]
9+
10+
### Documentation
11+
12+
- docs: Update README with known issues, fixes, and upstream status
13+
- docs: Update upstream submission status in README
14+
15+
### Driver
16+
17+
- dkms: Add USB ID 0489:e110 to MT7927 Bluetooth device table
18+
19+
### Other
20+
21+
- scripts: Add automated release script for DKMS package
22+
- .gitignore: Add linux-stable to ignored paths
23+
24+
### Packaging
25+
26+
- pkg: Distro-agnostic build system and bump to v2.4-1
827
## [2.3-1] - 2026-03-06
928

1029
### Driver
@@ -16,6 +35,7 @@ and pkgrel bumps for PKGBUILD packaging changes.
1635
### Other
1736

1837
- gitignore: Exclude .github/ (GitHub-only, AUR rejects subdirectories)
38+
- CHANGELOG: Reorganize entries into reverse-chronological order
1939
## [2.2-1] - 2026-03-06
2040

2141
### Documentation

Makefile

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# Generic Makefile for MediaTek MT7927 DKMS package
2+
3+
VERSION ?= $(shell sed -n 's/^PACKAGE_VERSION="\(.*\)"/\1/p' $(dir $(abspath $(lastword $(MAKEFILE_LIST))))dkms.conf)
4+
MT76_KVER ?= $(shell sed -n "s/^_mt76_kver='\(.*\)'/\1/p" $(dir $(abspath $(lastword $(MAKEFILE_LIST))))PKGBUILD)
5+
KERNEL_TARBALL ?= linux-$(MT76_KVER).tar.xz
6+
DRIVER_ZIP ?= $(firstword $(wildcard DRV_WiFi_MTK_MT7925_MT7927*.zip))
7+
SRCDIR ?= _build
8+
DESTDIR ?=
9+
DKMS_PREFIX ?= /usr/src/mediatek-mt7927-$(VERSION)
10+
FIRMWARE_PREFIX?= /usr/lib/firmware/mediatek
11+
PYTHON ?= python3
12+
13+
TOPDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
14+
STAMP := $(SRCDIR)/.sources-done
15+
16+
.PHONY: download sources install clean
17+
18+
# ── download ────────────────────────────────────────────────────────
19+
download:
20+
@if [ ! -f "$(KERNEL_TARBALL)" ]; then \
21+
echo "Downloading linux-$(MT76_KVER).tar.xz..."; \
22+
curl -L -f -o "$(KERNEL_TARBALL)" \
23+
"https://cdn.kernel.org/pub/linux/kernel/v$(firstword $(subst ., ,$(MT76_KVER))).x/linux-$(MT76_KVER).tar.xz"; \
24+
else \
25+
echo "Kernel tarball already exists: $(KERNEL_TARBALL)"; \
26+
fi
27+
@$(TOPDIR)download-driver.sh .
28+
29+
# ── sources ─────────────────────────────────────────────────────────
30+
sources: $(STAMP)
31+
32+
$(STAMP):
33+
@if [ ! -f "$(KERNEL_TARBALL)" ]; then \
34+
echo >&2 "ERROR: Kernel tarball not found: $(KERNEL_TARBALL)"; \
35+
echo >&2 "Run 'make download' first or set KERNEL_TARBALL=path/to/linux-$(MT76_KVER).tar.xz"; \
36+
exit 1; \
37+
fi
38+
@if [ -z "$(DRIVER_ZIP)" ]; then \
39+
echo >&2 "ERROR: No driver ZIP found. Set DRIVER_ZIP= or run 'make download' first."; \
40+
exit 1; \
41+
fi
42+
@if [ ! -f "$(DRIVER_ZIP)" ]; then \
43+
echo >&2 "ERROR: Driver ZIP not found: $(DRIVER_ZIP)"; \
44+
exit 1; \
45+
fi
46+
@echo "==> Extracting firmware from driver ZIP..."
47+
mkdir -p "$(SRCDIR)/firmware"
48+
$(PYTHON) "$(TOPDIR)extract_firmware.py" "$(DRIVER_ZIP)" "$(SRCDIR)/firmware"
49+
@echo "==> Extracting mt76 source from kernel v$(MT76_KVER) tarball..."
50+
mkdir -p "$(SRCDIR)/mt76"
51+
tar -xf "$(KERNEL_TARBALL)" \
52+
--strip-components=6 \
53+
-C "$(SRCDIR)/mt76" \
54+
"linux-$(MT76_KVER)/drivers/net/wireless/mediatek/mt76"
55+
@echo "==> Extracting bluetooth source..."
56+
mkdir -p "$(SRCDIR)/bluetooth"
57+
tar -xf "$(KERNEL_TARBALL)" \
58+
--strip-components=3 \
59+
-C "$(SRCDIR)/bluetooth" \
60+
"linux-$(MT76_KVER)/drivers/bluetooth"
61+
@echo "==> Applying mt7902-wifi-6.19.patch..."
62+
patch -d "$(SRCDIR)/mt76" -p1 < "$(TOPDIR)mt7902-wifi-6.19.patch"
63+
@echo "==> Applying MT7927 WiFi patches..."
64+
@for p in $(TOPDIR)mt7927-wifi-*.patch; do \
65+
echo " $$(basename "$$p")"; \
66+
patch -d "$(SRCDIR)/mt76" -p1 < "$$p"; \
67+
done
68+
@echo "==> Applying MT6639 Bluetooth patch..."
69+
patch -d "$(SRCDIR)/bluetooth" -p3 < "$(TOPDIR)mt6639-bt-6.19.patch"
70+
cp "$(TOPDIR)bluetooth.Makefile" "$(SRCDIR)/bluetooth/Makefile"
71+
@echo "==> Installing Kbuild files..."
72+
cp "$(TOPDIR)mt76.Kbuild" "$(SRCDIR)/mt76/Kbuild"
73+
cp "$(TOPDIR)mt7921.Kbuild" "$(SRCDIR)/mt76/mt7921/Kbuild"
74+
cp "$(TOPDIR)mt7925.Kbuild" "$(SRCDIR)/mt76/mt7925/Kbuild"
75+
@echo "==> Sources ready in $(SRCDIR)/"
76+
@touch "$(STAMP)"
77+
78+
# ── install ─────────────────────────────────────────────────────────
79+
install: sources
80+
@echo "==> Installing DKMS source tree to $(DESTDIR)$(DKMS_PREFIX)..."
81+
install -Dm644 "$(TOPDIR)dkms.conf" "$(DESTDIR)$(DKMS_PREFIX)/dkms.conf"
82+
install -Dm755 "$(TOPDIR)extract_firmware.py" "$(DESTDIR)$(DKMS_PREFIX)/extract_firmware.py"
83+
# Bluetooth source for DKMS btusb builds
84+
install -dm755 "$(DESTDIR)$(DKMS_PREFIX)/drivers/bluetooth"
85+
install -m644 $(SRCDIR)/bluetooth/btusb.c "$(DESTDIR)$(DKMS_PREFIX)/drivers/bluetooth/"
86+
install -m644 $(SRCDIR)/bluetooth/btmtk.c "$(DESTDIR)$(DKMS_PREFIX)/drivers/bluetooth/"
87+
install -m644 $(SRCDIR)/bluetooth/btmtk.h "$(DESTDIR)$(DKMS_PREFIX)/drivers/bluetooth/"
88+
install -m644 $(SRCDIR)/bluetooth/btbcm.c "$(DESTDIR)$(DKMS_PREFIX)/drivers/bluetooth/"
89+
install -m644 $(SRCDIR)/bluetooth/btbcm.h "$(DESTDIR)$(DKMS_PREFIX)/drivers/bluetooth/"
90+
install -m644 $(SRCDIR)/bluetooth/btintel.h "$(DESTDIR)$(DKMS_PREFIX)/drivers/bluetooth/"
91+
install -m644 $(SRCDIR)/bluetooth/btrtl.h "$(DESTDIR)$(DKMS_PREFIX)/drivers/bluetooth/"
92+
install -m644 $(SRCDIR)/bluetooth/Makefile "$(DESTDIR)$(DKMS_PREFIX)/drivers/bluetooth/"
93+
# Patched mt76 WiFi source tree
94+
install -dm755 "$(DESTDIR)$(DKMS_PREFIX)/mt76/mt7921" \
95+
"$(DESTDIR)$(DKMS_PREFIX)/mt76/mt7925"
96+
install -m644 $(SRCDIR)/mt76/*.c $(SRCDIR)/mt76/*.h \
97+
"$(DESTDIR)$(DKMS_PREFIX)/mt76/"
98+
install -m644 $(SRCDIR)/mt76/Kbuild "$(DESTDIR)$(DKMS_PREFIX)/mt76/"
99+
install -m644 $(SRCDIR)/mt76/mt7921/*.c $(SRCDIR)/mt76/mt7921/*.h \
100+
"$(DESTDIR)$(DKMS_PREFIX)/mt76/mt7921/"
101+
install -m644 $(SRCDIR)/mt76/mt7921/Kbuild "$(DESTDIR)$(DKMS_PREFIX)/mt76/mt7921/"
102+
install -m644 $(SRCDIR)/mt76/mt7925/*.c $(SRCDIR)/mt76/mt7925/*.h \
103+
"$(DESTDIR)$(DKMS_PREFIX)/mt76/mt7925/"
104+
install -m644 $(SRCDIR)/mt76/mt7925/Kbuild "$(DESTDIR)$(DKMS_PREFIX)/mt76/mt7925/"
105+
# BT firmware
106+
install -Dm644 "$(SRCDIR)/firmware/BT_RAM_CODE_MT6639_2_1_hdr.bin" \
107+
"$(DESTDIR)$(FIRMWARE_PREFIX)/mt6639/BT_RAM_CODE_MT6639_2_1_hdr.bin"
108+
# WiFi firmware
109+
install -Dm644 "$(SRCDIR)/firmware/WIFI_MT6639_PATCH_MCU_2_1_hdr.bin" \
110+
"$(DESTDIR)$(FIRMWARE_PREFIX)/mt7927/WIFI_MT6639_PATCH_MCU_2_1_hdr.bin"
111+
install -Dm644 "$(SRCDIR)/firmware/WIFI_RAM_CODE_MT6639_2_1.bin" \
112+
"$(DESTDIR)$(FIRMWARE_PREFIX)/mt7927/WIFI_RAM_CODE_MT6639_2_1.bin"
113+
# Patch files (reference copies)
114+
install -dm755 "$(DESTDIR)$(DKMS_PREFIX)/patches/bt"
115+
install -dm755 "$(DESTDIR)$(DKMS_PREFIX)/patches/wifi"
116+
install -m644 "$(TOPDIR)mt6639-bt-6.19.patch" "$(DESTDIR)$(DKMS_PREFIX)/patches/bt/"
117+
install -m644 "$(TOPDIR)mt7902-wifi-6.19.patch" "$(DESTDIR)$(DKMS_PREFIX)/patches/wifi/"
118+
install -m644 $(TOPDIR)mt7927-wifi-*.patch "$(DESTDIR)$(DKMS_PREFIX)/patches/wifi/"
119+
@echo "==> Install complete."
120+
121+
# ── clean ───────────────────────────────────────────────────────────
122+
clean:
123+
rm -rf "$(SRCDIR)"

PKGBUILD

Lines changed: 14 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
# Place the ZIP in this directory before running makepkg.
4545

4646
pkgname=mediatek-mt7927-dkms
47-
pkgver=2.3
47+
pkgver=2.4
4848
pkgrel=1
4949
# Keywords: MT7927 MT7925 MT6639 MT7902 Filogic 380 WiFi 7 Bluetooth btusb mt7925e mt7921e
5050
pkgdesc="DKMS Bluetooth (MT6639) and WiFi (MT7925e/MT7902) modules for MediaTek MT7927 Filogic 380"
@@ -71,44 +71,14 @@ source=(
7171
"https://cdn.kernel.org/pub/linux/kernel/v${_mt76_kver%%.*}.x/linux-${_mt76_kver}.tar.xz"
7272
'extract_firmware.py'
7373
'dkms.conf'
74-
'dkms-patchmodule.sh'
7574
)
7675
sha256sums=('4d9f3ff73214f68c0194ef02db9ca4b7ba713253ac1045441d4e9f352bc22e14'
77-
'e94c77671abe0d589faa01c1a9451f626b1fc45fb04f765b43fd0e126d01a436'
78-
'b6449dce574cd411eb5f17a740b68d5c62a164adae5e912a4bf2bf50ab4094e7'
79-
'bd29eefcec618ec17d6ff3b6521d8292a6e092c3cbbdd1fca93b63e4c86a7fec')
76+
'5410e79d1c9170264769c7149a78bf588ec85245c1556833605fc1c4657ba37a'
77+
'a663197cf356fbaf3b91c78aa683ef62608c23ab8cde922e5d22d31ecf3310ce')
8078

81-
# Auto-download via ASUS CDN token API.
82-
# Based on code by Eadinator: https://github.com/openwrt/mt76/issues/927#issuecomment-3936022734
79+
# Auto-download via ASUS CDN token API
8380
_download_driver_zip() {
84-
local _token_url="https://cdnta.asus.com/api/v1/TokenHQ?filePath=https:%2F%2Fdlcdnta.asus.com%2Fpub%2FASUS%2Fmb%2F08WIRELESS%2F${_driver_filename}%3Fmodel%3DROG%2520CROSSHAIR%2520X870E%2520HERO&systemCode=rog"
85-
86-
echo "Fetching download token from ASUS CDN..."
87-
local _json
88-
_json="$(curl -sf "${_token_url}" -X POST -H 'Origin: https://rog.asus.com')"
89-
90-
if [[ -z "${_json}" ]]; then
91-
echo >&2 "Failed to retrieve download token from ASUS CDN"
92-
return 1
93-
fi
94-
95-
local _expires _signature _key_pair_id
96-
_expires=${_json#*\"expires\":\"}
97-
_expires=${_expires%%\"*}
98-
99-
_signature=${_json#*\"signature\":\"}
100-
_signature=${_signature%%\"*}
101-
102-
_key_pair_id=${_json#*\"keyPairId\":\"}
103-
_key_pair_id=${_key_pair_id%%\"*}
104-
105-
local _download_url="https://dlcdnta.asus.com/pub/ASUS/mb/08WIRELESS/${_driver_filename}?model=ROG%20CROSSHAIR%20X870E%20HERO&Signature=${_signature}&Expires=${_expires}&Key-Pair-Id=${_key_pair_id}"
106-
107-
echo "Downloading ${_driver_filename}..."
108-
if ! curl -L -f -o "${SRCDEST:-.}/${_driver_filename}" "${_download_url}"; then
109-
echo >&2 "Failed to download driver ZIP"
110-
return 1
111-
fi
81+
DRIVER_FILENAME="${_driver_filename}" "${startdir}/download-driver.sh" "${SRCDEST:-.}"
11282
}
11383

11484
prepare() {
@@ -150,108 +120,16 @@ prepare() {
150120
build() {
151121
local _zips=("${SRCDEST:-.}"/DRV_WiFi_MTK_MT7925_MT7927*.zip)
152122

153-
# Extract BT + WiFi firmware from ASUS driver ZIP
154-
bsdtar -xf "${_zips[0]}" -C "${srcdir}" mtkwlan.dat
155-
python "${srcdir}/extract_firmware.py" "${srcdir}/mtkwlan.dat" "${srcdir}/firmware"
156-
157-
# Extract mt76 and bluetooth source from kernel tarball
158-
echo "Extracting mt76 source from kernel v${_mt76_kver} tarball..."
159-
mkdir -p "${srcdir}/mt76"
160-
tar -xf "${srcdir}/linux-${_mt76_kver}.tar.xz" \
161-
--strip-components=6 \
162-
-C "${srcdir}/mt76" \
163-
"linux-${_mt76_kver}/drivers/net/wireless/mediatek/mt76"
164-
165-
echo "Extracting bluetooth source..."
166-
mkdir -p "${srcdir}/bluetooth"
167-
tar -xf "${srcdir}/linux-${_mt76_kver}.tar.xz" \
168-
--strip-components=3 \
169-
-C "${srcdir}/bluetooth" \
170-
"linux-${_mt76_kver}/drivers/bluetooth"
171-
172-
cd "${srcdir}/mt76"
173-
174-
echo "Applying mt7902-wifi-6.19.patch..."
175-
patch -p1 < "${startdir}/mt7902-wifi-6.19.patch"
176-
177-
echo "Applying MT7927 WiFi patches..."
178-
for _p in "${startdir}"/mt7927-wifi-*.patch; do
179-
echo " $(basename "$_p")"
180-
patch -p1 < "$_p"
181-
done
182-
183-
# Create Kbuild files for out-of-tree mt76 build
184-
cat > "${srcdir}/mt76/Kbuild" <<'EOF'
185-
obj-m += mt76.o
186-
obj-m += mt76-connac-lib.o
187-
obj-m += mt792x-lib.o
188-
obj-m += mt7921/
189-
obj-m += mt7925/
190-
191-
mt76-y := \
192-
mmio.o util.o trace.o dma.o mac80211.o debugfs.o eeprom.o \
193-
tx.o agg-rx.o mcu.o wed.o scan.o channel.o pci.o
194-
195-
mt76-connac-lib-y := mt76_connac_mcu.o mt76_connac_mac.o mt76_connac3_mac.o
196-
197-
mt792x-lib-y := mt792x_core.o mt792x_mac.o mt792x_trace.o \
198-
mt792x_debugfs.o mt792x_dma.o mt792x_acpi_sar.o
199-
200-
CFLAGS_trace.o := -I$(src)
201-
CFLAGS_mt792x_trace.o := -I$(src)
202-
EOF
203-
204-
cat > "${srcdir}/mt76/mt7921/Kbuild" <<'EOF'
205-
obj-m += mt7921-common.o
206-
obj-m += mt7921e.o
207-
208-
mt7921-common-y := mac.o mcu.o main.o init.o debugfs.o
209-
mt7921e-y := pci.o pci_mac.o pci_mcu.o
210-
EOF
211-
212-
cat > "${srcdir}/mt76/mt7925/Kbuild" <<'EOF'
213-
obj-m += mt7925-common.o
214-
obj-m += mt7925e.o
215-
216-
mt7925-common-y := mac.o mcu.o regd.o main.o init.o debugfs.o
217-
mt7925e-y := pci.o pci_mac.o pci_mcu.o
218-
EOF
219-
220-
echo "mt76 source prepared with MT7902 + MT7927 patches"
123+
make -C "${startdir}" sources \
124+
MT76_KVER="${_mt76_kver}" \
125+
KERNEL_TARBALL="${srcdir}/linux-${_mt76_kver}.tar.xz" \
126+
DRIVER_ZIP="${_zips[0]}" \
127+
SRCDIR="${srcdir}/_build"
221128
}
222129

223130
package() {
224-
local _dkmsdir="${pkgdir}/usr/src/mediatek-mt7927-${pkgver}"
225-
226-
# Install DKMS config and scripts
227-
install -Dm644 "${srcdir}/dkms.conf" "${_dkmsdir}/dkms.conf"
228-
install -Dm755 "${srcdir}/dkms-patchmodule.sh" "${_dkmsdir}/dkms-patchmodule.sh"
229-
install -Dm644 "${startdir}/mt6639-bt-6.19.patch" "${_dkmsdir}/patches/bt/mt6639-bt-6.19.patch"
230-
install -dm755 "${_dkmsdir}/patches/wifi"
231-
install -m644 "${startdir}"/mt7927-wifi-*.patch "${_dkmsdir}/patches/wifi/"
232-
install -Dm755 "${srcdir}/extract_firmware.py" "${_dkmsdir}/extract_firmware.py"
233-
234-
# Install pre-extracted bluetooth source for DKMS btusb builds
235-
install -dm755 "${_dkmsdir}/drivers/bluetooth"
236-
install -m644 "${srcdir}/bluetooth"/{btusb.c,btmtk.c,btmtk.h,btbcm.c,btbcm.h,btintel.h,btrtl.h} \
237-
"${_dkmsdir}/drivers/bluetooth/"
238-
239-
# Install patched mt76 WiFi source tree
240-
install -dm755 "${_dkmsdir}/mt76/mt7921" "${_dkmsdir}/mt76/mt7925"
241-
install -m644 "${srcdir}/mt76"/*.{c,h} "${_dkmsdir}/mt76/"
242-
install -m644 "${srcdir}/mt76/Kbuild" "${_dkmsdir}/mt76/"
243-
install -m644 "${srcdir}/mt76/mt7921"/*.{c,h} "${_dkmsdir}/mt76/mt7921/"
244-
install -m644 "${srcdir}/mt76/mt7921/Kbuild" "${_dkmsdir}/mt76/mt7921/"
245-
install -m644 "${srcdir}/mt76/mt7925"/*.{c,h} "${_dkmsdir}/mt76/mt7925/"
246-
install -m644 "${srcdir}/mt76/mt7925/Kbuild" "${_dkmsdir}/mt76/mt7925/"
247-
248-
# Install BT firmware
249-
install -Dm644 "${srcdir}/firmware/BT_RAM_CODE_MT6639_2_1_hdr.bin" \
250-
"${pkgdir}/usr/lib/firmware/mediatek/mt6639/BT_RAM_CODE_MT6639_2_1_hdr.bin"
251-
252-
# Install WiFi firmware
253-
install -Dm644 "${srcdir}/firmware/WIFI_MT6639_PATCH_MCU_2_1_hdr.bin" \
254-
"${pkgdir}/usr/lib/firmware/mediatek/mt7927/WIFI_MT6639_PATCH_MCU_2_1_hdr.bin"
255-
install -Dm644 "${srcdir}/firmware/WIFI_RAM_CODE_MT6639_2_1.bin" \
256-
"${pkgdir}/usr/lib/firmware/mediatek/mt7927/WIFI_RAM_CODE_MT6639_2_1.bin"
131+
make -C "${startdir}" install \
132+
SRCDIR="${srcdir}/_build" \
133+
DESTDIR="${pkgdir}" \
134+
VERSION="${pkgver}"
257135
}

bluetooth.Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
obj-m += btusb.o btmtk.o

0 commit comments

Comments
 (0)