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 | 7af0f76 | 2023-05-22 15:16:16 +0800 | [diff] [blame] | 27 | FILESEXTRAPATHS_prepend := "${@bb.utils.contains('DISTRO_FEATURES','wifi_eht','${THISDIR}/files/patches-3.x:','${THISDIR}/files/patches:',d)}" |
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" |
| 33 | |
| 34 | SRC_URI += "file://*.patch;apply=no" |
| 35 | |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 36 | do_mtk_patches() { |
| 37 | cd ${S}/../ |
developer | e6cee7d | 2022-11-16 18:00:20 +0800 | [diff] [blame] | 38 | |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 39 | if [ ! -e mtk_wifi_patch_applied ]; then |
developer | 5f4cfb1 | 2022-12-15 16:48:11 +0800 | [diff] [blame] | 40 | for i in ${WORKDIR}/*.patch; do patch -p1 < $i; done |
developer | 0447f74 | 2022-10-31 14:57:29 +0800 | [diff] [blame] | 41 | fi |
| 42 | touch mtk_wifi_patch_applied |
| 43 | } |
| 44 | addtask mtk_patches after do_patch before do_configure |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |