[rdkb][common][conf][Add filogic830 onewifi build support]
[Description]
Add filogic830 onewifi build support
[Release-log]
Change-Id: I5db0bc298ecfbc84c4338bf6dac77a15ddd3474e
diff --git a/recipes-ccsp/hal/rdk-wifi-hal.bbappend b/recipes-ccsp/hal/rdk-wifi-hal.bbappend
new file mode 100644
index 0000000..34faa7b
--- /dev/null
+++ b/recipes-ccsp/hal/rdk-wifi-hal.bbappend
@@ -0,0 +1,23 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += " \
+ file://0001-filogic-platform-support.patch;apply=no \
+ file://0002-fix-5G-and-6G-connect-fail.patch;apply=no \
+"
+
+
+do_filogic_patches() {
+ cd ${WORKDIR}/git
+ if [ ! -e patch_applied ]; then
+ patch -p1 < ${WORKDIR}/0001-filogic-platform-support.patch
+ patch -p1 < ${WORKDIR}/0002-fix-5G-and-6G-connect-fail.patch
+ touch patch_applied
+ fi
+}
+addtask filogic_patches after do_unpack before do_compile
+
+CFLAGS_append = " -DMTK_FILOGIC -DCONFIG_MBO"
+CFLAGS_append_kirkstone = " -fcommon"
+EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' ONE_WIFIBUILD=true ', '', d)}"
+EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' MTK_FILOGIC=true ', '', d)}"
+