[rdkb][common][bsp][Refactor mt76 bb file for support driver version]
[Description]
Refactor mt76 bb file for support driver version
[Release-log]
Change-Id: Ic49a2634b4c672d15eebe7818475bcb058c42cb6
diff --git a/recipes-wifi/linux-mt76/linux-mt76_3.x.bb b/recipes-wifi/linux-mt76/linux-mt76_3.x.bb
index 4a5c6b5..75f0b87 100644
--- a/recipes-wifi/linux-mt76/linux-mt76_3.x.bb
+++ b/recipes-wifi/linux-mt76/linux-mt76_3.x.bb
@@ -5,6 +5,9 @@
inherit module
+PKG_YEAR="24"
+PKG_MONTH="10"
+
require mt76-3x.inc
SRC_URI = " \
git://git@github.com/openwrt/mt76.git;protocol=https;branch=master \
@@ -28,6 +31,7 @@
S = "${WORKDIR}/git"
+ADDITIONAL_CFLAGS="-DPKG_YEAR=${PKG_YEAR} -DPKG_MONTH=${PKG_MONTH}"
NOSTDINC_FLAGS = " \
-I${B} \
@@ -57,6 +61,7 @@
M=${S} \
${PKG_MAKE_FLAGS} \
NOSTDINC_FLAGS="${NOSTDINC_FLAGS}" \
+ ADDITIONAL_CFLAGS="${ADDITIONAL_CFLAGS}" \
"
MAKE_TARGETS = "modules"
diff --git a/recipes-wifi/linux-mt76/mt76-3x.inc b/recipes-wifi/linux-mt76/mt76-3x.inc
index 910da25..8b8f749 100644
--- a/recipes-wifi/linux-mt76/mt76-3x.inc
+++ b/recipes-wifi/linux-mt76/mt76-3x.inc
@@ -1,2 +1,4 @@
SRCREV_mt7990 = "ecca0e77b4bce629ec1f79d83bbd14a68f919188"
SRCREV_kernel6-6 = "be28ef77e330fdee28054214c798f028ddfbbc02"
+PKG_YEAR_kernel6-6="25"
+PKG_MONTH_kernel6-6="04"
\ No newline at end of file