developer | ff3b41f | 2022-04-12 20:02:18 +0800 | [diff] [blame^] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 2 | |
developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 3 | SRC_URI += "git://gerrit.mediatek.inc/gateway/rdk-b/rdkb_hal;protocol=https;destsuffix=git/source/platform/rdkb_hal" |
| 4 | |
developer | ff3b41f | 2022-04-12 20:02:18 +0800 | [diff] [blame^] | 5 | SRC_URI_append += " \ |
| 6 | file://001-rdkb-utopia-build-issue.patch;apply=no \ |
| 7 | " |
developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 8 | SRCREV = "${AUTOREV}" |
| 9 | |
| 10 | DEPENDS += "utopia-headers" |
| 11 | CFLAGS_append = " \ |
| 12 | -I=${includedir}/utctx \ |
| 13 | " |
| 14 | |
| 15 | do_configure_prepend(){ |
| 16 | rm ${S}/platform_hal.c |
| 17 | ln -sf ${S}/rdkb_hal/src/platform/platform_hal.c ${S}/platform_hal.c |
| 18 | } |
developer | ff3b41f | 2022-04-12 20:02:18 +0800 | [diff] [blame^] | 19 | |
| 20 | do_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 | |
| 28 | addtask mtk_patches after do_configure before do_compile |