blob: 88d250a303cd8faf6144d8d7bf7f402c12e147a0 [file] [log] [blame]
DESCRIPTION = "mt76-test"
SECTION = "applications"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://../COPYING;md5=c188eeeb69c0a05d0545816f1458a0c9"
DEPENDS += "libnl-tiny linux-mac80211"
inherit pkgconfig cmake
PV = "1.0"
require mt76.inc
require mt76-3x.inc
SRC_URI = " \
git://git@github.com/openwrt/mt76.git;protocol=https \
file://COPYING;subdir=git \
file://5000-mt76-add-internal-wed_tiny-header-file.patch;apply=no\
"
DEPENDS += "virtual/kernel"
DEPENDS += "linux-mac80211"
DEPENDS += "linux-mt76"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
CFLAGS_append = " -I=${includedir}/libnl-tiny -I${STAGING_KERNEL_BUILDDIR}/usr/include/mac80211/uapi "
S = "${WORKDIR}/git/tools"
PATCH_SRC = "${@bb.utils.contains('DISTRO_FEATURES','wifi_eht','${WORKDIR}/patches-3.x','${WORKDIR}/patches',d)}"
SRC_URI += "file://${@bb.utils.contains('DISTRO_FEATURES','wifi_eht','patches-3.x/','patches/',d)};apply=no"
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)}"
do_mtk_patches() {
cd ${S}/../
if [ ! -e mtk_wifi_patch_applied ]; then
for i in ${PATCH_SRC}/*.patch; do patch -p1 < $i; done
fi
touch mtk_wifi_patch_applied
}
addtask mtk_patches after do_patch before do_configure