developer | 9037957 | 2024-05-29 17:23:20 +0800 | [diff] [blame^] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 2 | |
| 3 | SRC_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 | |
| 9 | do_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 | } |
| 17 | addtask filogic_patches after do_unpack before do_compile |
| 18 | |
| 19 | CFLAGS_append = " -DMTK_FILOGIC -DCONFIG_MBO" |
| 20 | CFLAGS_append_kirkstone = " -fcommon" |
| 21 | EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' ONE_WIFIBUILD=true ', '', d)}" |
| 22 | EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' MTK_FILOGIC=true ', '', d)}" |
| 23 | |