developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 1 | EXTRA_OECONF_append = " --enable-ert --enable-platform" |
| 2 | |
| 3 | SRC_URI += "${CMF_GIT_ROOT}/rdkb/devices/turris/tdkb;protocol=${CMF_GIT_PROTOCOL};branch=${CMF_GIT_BRANCH};destsuffix=git/platform/turris;name=tdkbturris" |
| 4 | |
| 5 | SRCREV_tdkturris = "${AUTOREV}" |
| 6 | do_fetch[vardeps] += "SRCREV_tdkbturris" |
| 7 | SRCREV_FORMAT = "tdk_tdkbturris" |
| 8 | |
developer | 84bc359 | 2022-10-31 15:53:09 +0800 | [diff] [blame] | 9 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
developer | fb68818 | 2022-06-08 14:48:19 +0800 | [diff] [blame] | 10 | |
developer | 84bc359 | 2022-10-31 15:53:09 +0800 | [diff] [blame] | 11 | SRC_URI += "file://*.patch;apply=no \ |
| 12 | file://Set_properties.sh;subdir=git \ |
developer | 50e7466 | 2023-05-16 20:28:32 +0800 | [diff] [blame] | 13 | file://Set_properties_logan.sh;subdir=git \ |
developer | 84bc359 | 2022-10-31 15:53:09 +0800 | [diff] [blame] | 14 | " |
developer | fb68818 | 2022-06-08 14:48:19 +0800 | [diff] [blame] | 15 | |
| 16 | do_mtk_patches() { |
| 17 | cd ${S} |
| 18 | if [ ! -e mtk_wifi_patch_applied ]; then |
developer | 50e7466 | 2023-05-16 20:28:32 +0800 | [diff] [blame] | 19 | patch -p1 < ${WORKDIR}/0001-Fix-GetApAssociatedDeviceRxStatsResult-and-GetApAsso.patch |
| 20 | patch -p1 < ${WORKDIR}/0002-Add-tdk-utility-functions.patch |
| 21 | patch -p1 < ${WORKDIR}/0003-Add-Set-property-script.patch |
| 22 | if ${@bb.utils.contains( 'DISTRO_FEATURES', 'logan', 'false', 'true', d)}; then |
| 23 | patch -p1 < ${WORKDIR}/0004-Add-start-sequence-after-uci.patch |
| 24 | fi |
| 25 | patch -p1 < ${WORKDIR}/0005-Fix-wifi_getApAssociatedDeviceTidStatsResult-print-a.patch |
developer | fb68818 | 2022-06-08 14:48:19 +0800 | [diff] [blame] | 26 | fi |
| 27 | touch mtk_wifi_patch_applied |
| 28 | } |
| 29 | addtask mtk_patches after do_unpack before do_compile |
| 30 | |
developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 31 | do_install_append () { |
| 32 | install -d ${D}${tdkdir} |
| 33 | install -d ${D}/etc |
| 34 | install -p -m 755 ${S}/platform/turris/agent/scripts/*.sh ${D}${tdkdir} |
| 35 | install -p -m 755 ${S}/platform/turris/agent/scripts/tdk_platform.properties ${D}/etc/ |
developer | 84bc359 | 2022-10-31 15:53:09 +0800 | [diff] [blame] | 36 | install -p -m 755 ${S}/Set_properties.sh ${D}${tdkdir} |
developer | 50e7466 | 2023-05-16 20:28:32 +0800 | [diff] [blame] | 37 | install -p -m 755 ${S}/Set_properties_logan.sh ${D}${tdkdir} |
developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | FILES_${PN} += "${prefix}/ccsp/" |
| 41 | FILES_${PN} += "/etc/*" |
| 42 | FILES_${PN} += "${tdkdir}/*" |
| 43 | |
developer | 2ba4ebd | 2023-01-10 10:00:34 +0800 | [diff] [blame] | 44 | CXXFLAGS_append = " -DWIFI_HAL_VERSION_3 " |
| 45 | |