developer | 3b7aaa7 | 2022-07-15 11:55:52 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
developer | 02cc929 | 2023-02-24 18:01:27 +0800 | [diff] [blame] | 2 | SRC_URI_append = " file://*.patch;apply=no \ |
| 3 | " |
developer | 3b7aaa7 | 2022-07-15 11:55:52 +0800 | [diff] [blame] | 4 | |
| 5 | #This is workaround for missing do_patch when RDK uses external sources |
| 6 | do_filogic_patches() { |
| 7 | cd ${S} |
| 8 | if [ ! -e patch_applied ]; then |
| 9 | patch -p1 < ${WORKDIR}/sta-network.patch |
developer | eeae760 | 2022-10-05 18:03:56 +0800 | [diff] [blame] | 10 | patch -p1 < ${WORKDIR}/add_undefined_dfs_function.patch |
developer | 53364a7 | 2023-04-24 10:59:12 +0800 | [diff] [blame] | 11 | if ${@bb.utils.contains( 'DISTRO_FEATURES', 'filogic', 'false', 'true', d)}; then |
| 12 | patch -p1 < ${WORKDIR}/0001-Add-owe-mode.patch |
| 13 | fi |
developer | 5f947ea | 2023-03-06 09:54:02 +0800 | [diff] [blame] | 14 | patch -p1 < ${WORKDIR}/0002-Add-EHT-support.patch |
developer | 3b7aaa7 | 2022-07-15 11:55:52 +0800 | [diff] [blame] | 15 | touch patch_applied |
| 16 | fi |
| 17 | } |
| 18 | addtask filogic_patches after do_unpack before do_compile |
| 19 | |
| 20 | CFLAGS_append = " -DWIFI_HAL_VERSION_3" |