blob: daabcb290faa82dd92a292c317e5ce35b9c75633 [file] [log] [blame]
developer3b7aaa72022-07-15 11:55:52 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
developer02cc9292023-02-24 18:01:27 +08002SRC_URI_append = " file://*.patch;apply=no \
3 "
developer3b7aaa72022-07-15 11:55:52 +08004
5#This is workaround for missing do_patch when RDK uses external sources
6do_filogic_patches() {
7 cd ${S}
8 if [ ! -e patch_applied ]; then
9 patch -p1 < ${WORKDIR}/sta-network.patch
developereeae7602022-10-05 18:03:56 +080010 patch -p1 < ${WORKDIR}/add_undefined_dfs_function.patch
developerf634eab2023-01-13 15:23:06 +080011 patch -p1 < ${WORKDIR}/0001-Add-owe-mode.patch
developer02cc9292023-02-24 18:01:27 +080012 if ${@bb.utils.contains('DISTRO_FEATURES','wifi_eht','true','false',d)}; then
13 patch -p1 < ${WORKDIR}/0002-Add-EHT-support.patch
14 fi
developer3b7aaa72022-07-15 11:55:52 +080015 touch patch_applied
16 fi
17}
18addtask filogic_patches after do_unpack before do_compile
19
20CFLAGS_append = " -DWIFI_HAL_VERSION_3"