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