developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 1 | EXTRA_OECONF_append = " --enable-ert --enable-platform" |
| 2 | |
developer | eaf437e | 2024-06-14 16:32:39 +0800 | [diff] [blame] | 3 | SRC_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 | " |
| 6 | SRCREV_tdkbraspberrypi = "${AUTOREV}" |
| 7 | do_fetch[vardeps] += "SRCREV_tdkbraspberrypi" |
| 8 | SRCREV_FORMAT = "tdk_tdkbraspberrypi" |
developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 9 | |
developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 10 | |
developer | 84bc359 | 2022-10-31 15:53:09 +0800 | [diff] [blame] | 11 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
developer | fb68818 | 2022-06-08 14:48:19 +0800 | [diff] [blame] | 12 | |
developer | 783a8a6 | 2024-01-17 12:34:31 +0800 | [diff] [blame] | 13 | SRC_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 \ |
developer | 84bc359 | 2022-10-31 15:53:09 +0800 | [diff] [blame] | 19 | file://Set_properties.sh;subdir=git \ |
developer | 50e7466 | 2023-05-16 20:28:32 +0800 | [diff] [blame] | 20 | file://Set_properties_logan.sh;subdir=git \ |
developer | 84bc359 | 2022-10-31 15:53:09 +0800 | [diff] [blame] | 21 | " |
developer | fb68818 | 2022-06-08 14:48:19 +0800 | [diff] [blame] | 22 | |
| 23 | do_mtk_patches() { |
| 24 | cd ${S} |
| 25 | if [ ! -e mtk_wifi_patch_applied ]; then |
developer | 50e7466 | 2023-05-16 20:28:32 +0800 | [diff] [blame] | 26 | 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 |
developer | fb68818 | 2022-06-08 14:48:19 +0800 | [diff] [blame] | 33 | fi |
| 34 | touch mtk_wifi_patch_applied |
| 35 | } |
| 36 | addtask mtk_patches after do_unpack before do_compile |
| 37 | |
developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 38 | do_install_append () { |
| 39 | install -d ${D}${tdkdir} |
| 40 | install -d ${D}/etc |
developer | eaf437e | 2024-06-14 16:32:39 +0800 | [diff] [blame] | 41 | 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/ |
developer | 84bc359 | 2022-10-31 15:53:09 +0800 | [diff] [blame] | 43 | install -p -m 755 ${S}/Set_properties.sh ${D}${tdkdir} |
developer | 50e7466 | 2023-05-16 20:28:32 +0800 | [diff] [blame] | 44 | install -p -m 755 ${S}/Set_properties_logan.sh ${D}${tdkdir} |
developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | FILES_${PN} += "${prefix}/ccsp/" |
| 48 | FILES_${PN} += "/etc/*" |
| 49 | FILES_${PN} += "${tdkdir}/*" |
| 50 | |
developer | 2ba4ebd | 2023-01-10 10:00:34 +0800 | [diff] [blame] | 51 | CXXFLAGS_append = " -DWIFI_HAL_VERSION_3 " |
| 52 | |