developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 1 | |
| 2 | BRANCH_MTK_IMPL= "nightly/20220329-dunfell" |
| 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 | |