blob: 4a62ecc010d87db1db67fcc9da33f744bf976960 [file] [log] [blame]
developerff3b41f2022-04-12 20:02:18 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2
developer15a43312022-04-12 11:23:23 +08003SRC_URI += "git://gerrit.mediatek.inc/gateway/rdk-b/rdkb_hal;protocol=https;destsuffix=git/source/platform/rdkb_hal"
4
developerff3b41f2022-04-12 20:02:18 +08005SRC_URI_append += " \
6 file://001-rdkb-utopia-build-issue.patch;apply=no \
7 "
developer15a43312022-04-12 11:23:23 +08008SRCREV = "${AUTOREV}"
9
10DEPENDS += "utopia-headers"
11CFLAGS_append = " \
12 -I=${includedir}/utctx \
13"
14
15do_configure_prepend(){
16 rm ${S}/platform_hal.c
17 ln -sf ${S}/rdkb_hal/src/platform/platform_hal.c ${S}/platform_hal.c
18}
developerff3b41f2022-04-12 20:02:18 +080019
20do_mtk_patches() {
21 cd ${S}/rdkb_hal
22 if [ ! -e patch_applied ]; then
23 patch -p1 < ${WORKDIR}/001-rdkb-utopia-build-issue.patch
24 touch patch_applied
25 fi
26}
27
28addtask mtk_patches after do_configure before do_compile