blob: 34faa7bcc73ce6dbb2f3824eae2cb7574dc643d6 [file] [log] [blame]
developer90379572024-05-29 17:23:20 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2
3SRC_URI += " \
4 file://0001-filogic-platform-support.patch;apply=no \
5 file://0002-fix-5G-and-6G-connect-fail.patch;apply=no \
6"
7
8
9do_filogic_patches() {
10 cd ${WORKDIR}/git
11 if [ ! -e patch_applied ]; then
12 patch -p1 < ${WORKDIR}/0001-filogic-platform-support.patch
13 patch -p1 < ${WORKDIR}/0002-fix-5G-and-6G-connect-fail.patch
14 touch patch_applied
15 fi
16}
17addtask filogic_patches after do_unpack before do_compile
18
19CFLAGS_append = " -DMTK_FILOGIC -DCONFIG_MBO"
20CFLAGS_append_kirkstone = " -fcommon"
21EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' ONE_WIFIBUILD=true ', '', d)}"
22EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' MTK_FILOGIC=true ', '', d)}"
23