developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 1 | |
developer | e47561c | 2022-04-27 20:42:58 +0800 | [diff] [blame] | 2 | BRANCH_MTK_IMPL= "master" |
developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 3 | |
| 4 | SRC_URI = "${CMF_GITHUB_ROOT}/hal-wifi-cfg80211;protocol=${CMF_GIT_PROTOCOL};branch=${BRANCH_MTK_IMPL};name=wifihal" |
| 5 | |
| 6 | FILESEXTRAPATHS_remove := "${THISDIR}/files:" |
| 7 | FILESEXTRAPATHS_prepend := "${THISDIR}/hal-wifi-patches:" |
| 8 | |
| 9 | SRC_URI += "file://*.patch;apply=no" |
| 10 | |
| 11 | do_mtk_patches() { |
| 12 | cd ${S}/../../ |
| 13 | if [ ! -e mtk_wifi_patch_applied ]; then |
| 14 | for i in ${WORKDIR}/*.patch; do patch -p1 < $i; done |
| 15 | fi |
| 16 | touch mtk_wifi_patch_applied |
| 17 | } |
| 18 | addtask mtk_patches after do_unpack before do_compile |
| 19 | |
developer | 41e2e7d | 2022-05-31 14:33:04 +0800 | [diff] [blame] | 20 | CFLAGS_append = " -DWIFI_HAL_VERSION_3" |