summaryrefslogtreecommitdiff
path: root/recipes-bsp/u-boot/rvphone/cl-imx8.inc
blob: 4d922bbdfad9aa2311218da1cdb272a5b22c4959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SRC_URI_append_cl-imx8 = " \
	file://0000-board-support.patch \
	file://dts/ \
	file://board/ \
	file://configs/ \
	file://include/ \
"

do_patch_copy () {
    mkdir -p ${S}/board/rvphone
    cp -a ${WORKDIR}/dts/* ${S}/arch/arm/dts/
    cp -a ${WORKDIR}/board/rvphone/cl-imx8 ${S}/board/rvphone/
    cp -a ${WORKDIR}/configs/* ${S}/configs/
    cp -a ${WORKDIR}/include/configs/* ${S}/include/configs/
    if [ ! -z ${DDR_FIRMWARE_VERSION} ]; then
        cp ${S}/board/compulab/cl-som-imx8/ddr/lpddr4_timing_2g_${DDR_FIRMWARE_VERSION}.c ${S}/board/compulab/cl-som-imx8/ddr/lpddr4_timing_2g.c
    fi
}

addtask patch_copy after do_patch before do_configure