[Fix utopia build fail issue]
[Description]
Fix utopia build fail issue
1. patch some lack function in hal_platform.c for 2022 rdkb version
[Release-log]
diff --git a/recipes-ccsp/hal/hal-platform-generic_git.bbappend b/recipes-ccsp/hal/hal-platform-generic_git.bbappend
index 6e4c489..4a62ecc 100644
--- a/recipes-ccsp/hal/hal-platform-generic_git.bbappend
+++ b/recipes-ccsp/hal/hal-platform-generic_git.bbappend
@@ -1,5 +1,10 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
SRC_URI += "git://gerrit.mediatek.inc/gateway/rdk-b/rdkb_hal;protocol=https;destsuffix=git/source/platform/rdkb_hal"
+SRC_URI_append += " \
+ file://001-rdkb-utopia-build-issue.patch;apply=no \
+ "
SRCREV = "${AUTOREV}"
DEPENDS += "utopia-headers"
@@ -11,3 +16,13 @@
rm ${S}/platform_hal.c
ln -sf ${S}/rdkb_hal/src/platform/platform_hal.c ${S}/platform_hal.c
}
+
+do_mtk_patches() {
+ cd ${S}/rdkb_hal
+ if [ ! -e patch_applied ]; then
+ patch -p1 < ${WORKDIR}/001-rdkb-utopia-build-issue.patch
+ touch patch_applied
+ fi
+}
+
+addtask mtk_patches after do_configure before do_compile
\ No newline at end of file