blob: 7a03e093c109d9b2b7f0fe24c9d6974bcfda8da9 [file] [log] [blame]
developer15a43312022-04-12 11:23:23 +08001EXTRA_OECONF_append = " --enable-ert --enable-platform"
2
3SRC_URI += "${CMF_GIT_ROOT}/rdkb/devices/turris/tdkb;protocol=${CMF_GIT_PROTOCOL};branch=${CMF_GIT_BRANCH};destsuffix=git/platform/turris;name=tdkbturris"
4
5SRCREV_tdkturris = "${AUTOREV}"
6do_fetch[vardeps] += "SRCREV_tdkbturris"
7SRCREV_FORMAT = "tdk_tdkbturris"
8
developer84bc3592022-10-31 15:53:09 +08009FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
developerfb688182022-06-08 14:48:19 +080010
developer84bc3592022-10-31 15:53:09 +080011SRC_URI += "file://*.patch;apply=no \
12 file://Set_properties.sh;subdir=git \
developer50e74662023-05-16 20:28:32 +080013 file://Set_properties_logan.sh;subdir=git \
developer84bc3592022-10-31 15:53:09 +080014"
developerfb688182022-06-08 14:48:19 +080015
16do_mtk_patches() {
17 cd ${S}
18 if [ ! -e mtk_wifi_patch_applied ]; then
developer50e74662023-05-16 20:28:32 +080019 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
developerfb688182022-06-08 14:48:19 +080026 fi
27 touch mtk_wifi_patch_applied
28}
29addtask mtk_patches after do_unpack before do_compile
30
developer15a43312022-04-12 11:23:23 +080031do_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/
developer84bc3592022-10-31 15:53:09 +080036 install -p -m 755 ${S}/Set_properties.sh ${D}${tdkdir}
developer50e74662023-05-16 20:28:32 +080037 install -p -m 755 ${S}/Set_properties_logan.sh ${D}${tdkdir}
developer15a43312022-04-12 11:23:23 +080038}
39
40FILES_${PN} += "${prefix}/ccsp/"
41FILES_${PN} += "/etc/*"
42FILES_${PN} += "${tdkdir}/*"
43
developer2ba4ebd2023-01-10 10:00:34 +080044CXXFLAGS_append = " -DWIFI_HAL_VERSION_3 "
45