blob: 4276ef47ac862874ddd995a09256179001fc0015 [file] [log] [blame]
developer15a43312022-04-12 11:23:23 +08001EXTRA_OECONF_append = " --enable-ert --enable-platform"
2
developereaf437e2024-06-14 16:32:39 +08003SRC_URI_append = " \
4 ${CMF_GIT_ROOT}/rdkb/devices/raspberrypi/tdkb;protocol=${CMF_GIT_PROTOCOL};branch=${CMF_GIT_BRANCH};destsuffix=git/platform/raspberrypi;name=tdkbraspberrypi \
5"
6SRCREV_tdkbraspberrypi = "${AUTOREV}"
7do_fetch[vardeps] += "SRCREV_tdkbraspberrypi"
8SRCREV_FORMAT = "tdk_tdkbraspberrypi"
developer15a43312022-04-12 11:23:23 +08009
developer15a43312022-04-12 11:23:23 +080010
developer84bc3592022-10-31 15:53:09 +080011FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
developerfb688182022-06-08 14:48:19 +080012
developer783a8a62024-01-17 12:34:31 +080013SRC_URI += " \
14 file://0001-Fix-GetApAssociatedDeviceRxStatsResult-and-GetApAsso.patch;apply=no \
15 file://0002-Add-tdk-utility-functions.patch;apply=no \
16 file://0003-Add-Set-property-script.patch;apply=no \
17 file://0004-Add-start-sequence-after-uci.patch;apply=no \
18 file://0005-Fix-wifi_getApAssociatedDeviceTidStatsResult-print-a.patch;apply=no \
developer84bc3592022-10-31 15:53:09 +080019 file://Set_properties.sh;subdir=git \
developer50e74662023-05-16 20:28:32 +080020 file://Set_properties_logan.sh;subdir=git \
developer84bc3592022-10-31 15:53:09 +080021"
developerfb688182022-06-08 14:48:19 +080022
23do_mtk_patches() {
24 cd ${S}
25 if [ ! -e mtk_wifi_patch_applied ]; then
developer50e74662023-05-16 20:28:32 +080026 patch -p1 < ${WORKDIR}/0001-Fix-GetApAssociatedDeviceRxStatsResult-and-GetApAsso.patch
27 patch -p1 < ${WORKDIR}/0002-Add-tdk-utility-functions.patch
28 patch -p1 < ${WORKDIR}/0003-Add-Set-property-script.patch
29 if ${@bb.utils.contains( 'DISTRO_FEATURES', 'logan', 'false', 'true', d)}; then
30 patch -p1 < ${WORKDIR}/0004-Add-start-sequence-after-uci.patch
31 fi
32 patch -p1 < ${WORKDIR}/0005-Fix-wifi_getApAssociatedDeviceTidStatsResult-print-a.patch
developerfb688182022-06-08 14:48:19 +080033 fi
34 touch mtk_wifi_patch_applied
35}
36addtask mtk_patches after do_unpack before do_compile
37
developer15a43312022-04-12 11:23:23 +080038do_install_append () {
39 install -d ${D}${tdkdir}
40 install -d ${D}/etc
developereaf437e2024-06-14 16:32:39 +080041 install -p -m 755 ${S}/platform/raspberrypi/agent/scripts/*.sh ${D}${tdkdir}
42 install -p -m 755 ${S}/platform/raspberrypi/agent/scripts/tdk_platform.properties ${D}/etc/
developer84bc3592022-10-31 15:53:09 +080043 install -p -m 755 ${S}/Set_properties.sh ${D}${tdkdir}
developer50e74662023-05-16 20:28:32 +080044 install -p -m 755 ${S}/Set_properties_logan.sh ${D}${tdkdir}
developer15a43312022-04-12 11:23:23 +080045}
46
47FILES_${PN} += "${prefix}/ccsp/"
48FILES_${PN} += "/etc/*"
49FILES_${PN} += "${tdkdir}/*"
50
developer2ba4ebd2023-01-10 10:00:34 +080051CXXFLAGS_append = " -DWIFI_HAL_VERSION_3 "
52