developer | 9ac79da | 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 |
| 13 | SRC_URI = " \ |
| 14 | git://git@github.com/openwrt/mt76.git;protocol=https \ |
| 15 | file://COPYING;subdir=git \ |
| 16 | " |
| 17 | |
| 18 | |
| 19 | DEPENDS += "virtual/kernel" |
| 20 | DEPENDS += "linux-mac80211" |
| 21 | DEPENDS += "linux-mt76" |
| 22 | |
| 23 | FILESEXTRAPATHS_prepend := "${THISDIR}/files/patches:" |
| 24 | |
| 25 | |
| 26 | CFLAGS_append = " -I=${includedir}/libnl-tiny " |
| 27 | |
| 28 | S = "${WORKDIR}/git/tools" |
| 29 | |
| 30 | SRC_URI += "file://*.patch;apply=no" |
| 31 | |
| 32 | |
| 33 | do_mtk_patches() { |
| 34 | cd ${S}/../ |
| 35 | if [ ! -e mtk_wifi_patch_applied ]; then |
| 36 | for i in ${WORKDIR}/*.patch; do patch -p1 < $i; done |
| 37 | fi |
| 38 | touch mtk_wifi_patch_applied |
| 39 | } |
| 40 | addtask mtk_patches after do_patch before do_configure |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |