summaryrefslogtreecommitdiff
path: root/yocto/meta-bsp-rvphone/recipes-bsp/imx-mkimage
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/imx-mkimage
parent6d270f43cfea8e840463c260b43a6afbd24c1149 (diff)
yocto rename
Diffstat (limited to 'yocto/meta-bsp-rvphone/recipes-bsp/imx-mkimage')
-rw-r--r--yocto/meta-bsp-rvphone/recipes-bsp/imx-mkimage/imx-boot_%.bbappend13
1 files changed, 13 insertions, 0 deletions
diff --git a/yocto/meta-bsp-rvphone/recipes-bsp/imx-mkimage/imx-boot_%.bbappend b/yocto/meta-bsp-rvphone/recipes-bsp/imx-mkimage/imx-boot_%.bbappend
new file mode 100644
index 0000000..5fa1774
--- /dev/null
+++ b/yocto/meta-bsp-rvphone/recipes-bsp/imx-mkimage/imx-boot_%.bbappend
@@ -0,0 +1,13 @@
+do_compile_preppend () {
+ make_file=${S}/iMX8M/soc.mak
+ if [ -e ${make_file} ]; then
+ sed -i "s/^dtbs = .*dtb/dtbs = ${UBOOT_DTB_NAME}/g" ${make_file}
+ if [ ! -z ${DDR_FIRMWARE_VERSION} ]; then
+ sed -i "/^lpddr4_.mem_.d = / i LPDDR_FW_VERSION = _${DDR_FIRMWARE_VERSION}" ${make_file}
+ fi
+ fi
+}
+
+addtask compile_preppend before do_compile after do_configure
+
+COMPATIBLE_MACHINE = "(cl-imx8)"