developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 1 | DESCRIPTION = "mt76-test" |
| 2 | SECTION = "applications" |
| 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://../COPYING;md5=c188eeeb69c0a05d0545816f1458a0c9" |
| 5 | |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 6 | DEPENDS += "libnl-tiny linux-mac80211" |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 7 | |
| 8 | inherit pkgconfig cmake |
| 9 | |
| 10 | PV = "1.0" |
| 11 | |
| 12 | require mt76.inc |
developer | a20cdc2 | 2024-05-31 18:57:31 +0800 | [diff] [blame] | 13 | require mt76-3x.inc |
developer | 327aa32 | 2023-07-10 13:49:56 +0800 | [diff] [blame] | 14 | |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 15 | SRC_URI = " \ |
| 16 | git://git@github.com/openwrt/mt76.git;protocol=https \ |
| 17 | file://COPYING;subdir=git \ |
developer | 5f4cfb1 | 2022-12-15 16:48:11 +0800 | [diff] [blame] | 18 | file://5000-mt76-add-internal-wed_tiny-header-file.patch;apply=no\ |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 19 | " |
| 20 | |
| 21 | |
developer | e6cee7d | 2022-11-16 18:00:20 +0800 | [diff] [blame] | 22 | |
| 23 | |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 24 | DEPENDS += "virtual/kernel" |
| 25 | DEPENDS += "linux-mac80211" |
| 26 | DEPENDS += "linux-mt76" |
| 27 | |
developer | 93e9720 | 2024-01-17 12:29:44 +0800 | [diff] [blame] | 28 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 29 | |
| 30 | |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 31 | CFLAGS_append = " -I=${includedir}/libnl-tiny -I${STAGING_KERNEL_BUILDDIR}/usr/include/mac80211/uapi " |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 32 | |
| 33 | S = "${WORKDIR}/git/tools" |
developer | 93e9720 | 2024-01-17 12:29:44 +0800 | [diff] [blame] | 34 | PATCH_SRC = "${@bb.utils.contains('DISTRO_FEATURES','wifi_eht','${WORKDIR}/patches-3.x','${WORKDIR}/patches',d)}" |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 35 | |
developer | 93e9720 | 2024-01-17 12:29:44 +0800 | [diff] [blame] | 36 | SRC_URI += "file://${@bb.utils.contains('DISTRO_FEATURES','wifi_eht','patches-3.x/','patches/',d)};apply=no" |
developer | fd901d9 | 2024-04-29 17:16:53 +0800 | [diff] [blame] | 37 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES','wifi_eht','file://0118-fixup-wifi-mt76-mt7996-temp-support-for-single-wiphy.patch;subdir=${PATCH_SRC};apply=no','',d)}" |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 38 | |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 39 | do_mtk_patches() { |
| 40 | cd ${S}/../ |
developer | e6cee7d | 2022-11-16 18:00:20 +0800 | [diff] [blame] | 41 | |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 42 | if [ ! -e mtk_wifi_patch_applied ]; then |
developer | 93e9720 | 2024-01-17 12:29:44 +0800 | [diff] [blame] | 43 | for i in ${PATCH_SRC}/*.patch; do patch -p1 < $i; done |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 44 | fi |
| 45 | touch mtk_wifi_patch_applied |
| 46 | } |
| 47 | addtask mtk_patches after do_patch before do_configure |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |