blob: 41a7c584dc55ef34b0200d75c57fa0ebe800b42c [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 \
13"
developerfb688182022-06-08 14:48:19 +080014
15do_mtk_patches() {
16 cd ${S}
17 if [ ! -e mtk_wifi_patch_applied ]; then
18 for i in ${WORKDIR}/*.patch; do patch -p1 < $i; done
19 fi
20 touch mtk_wifi_patch_applied
21}
22addtask mtk_patches after do_unpack before do_compile
23
developer15a43312022-04-12 11:23:23 +080024do_install_append () {
25 install -d ${D}${tdkdir}
26 install -d ${D}/etc
27 install -p -m 755 ${S}/platform/turris/agent/scripts/*.sh ${D}${tdkdir}
28 install -p -m 755 ${S}/platform/turris/agent/scripts/tdk_platform.properties ${D}/etc/
developer84bc3592022-10-31 15:53:09 +080029 install -p -m 755 ${S}/Set_properties.sh ${D}${tdkdir}
developer15a43312022-04-12 11:23:23 +080030}
31
32FILES_${PN} += "${prefix}/ccsp/"
33FILES_${PN} += "/etc/*"
34FILES_${PN} += "${tdkdir}/*"
35