summaryrefslogtreecommitdiff
path: root/yocto/meta-bsp-rvphone/recipes-bsp/u-boot/rvphone/cl-imx8.inc
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-08-27 03:06:13 +0200
committerUros Majstorovic <majstor@majstor.org>2021-08-27 03:06:13 +0200
commit76ec318118106cb25d762de83857f6579c13e273 (patch)
treeac1025b9e79a5eae04b6036d56599c0df98dcb08 /yocto/meta-bsp-rvphone/recipes-bsp/u-boot/rvphone/cl-imx8.inc
parent6d270f43cfea8e840463c260b43a6afbd24c1149 (diff)
yocto rename
Diffstat (limited to 'yocto/meta-bsp-rvphone/recipes-bsp/u-boot/rvphone/cl-imx8.inc')
-rw-r--r--yocto/meta-bsp-rvphone/recipes-bsp/u-boot/rvphone/cl-imx8.inc20
1 files changed, 20 insertions, 0 deletions
diff --git a/yocto/meta-bsp-rvphone/recipes-bsp/u-boot/rvphone/cl-imx8.inc b/yocto/meta-bsp-rvphone/recipes-bsp/u-boot/rvphone/cl-imx8.inc
new file mode 100644
index 0000000..4d922bb
--- /dev/null
+++ b/yocto/meta-bsp-rvphone/recipes-bsp/u-boot/rvphone/cl-imx8.inc
@@ -0,0 +1,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