[meta-rockchip][PATCH] Install appropriate fw_env.config for rk3288


Sergey Bostandzhyan
 

From: Sergey 'Jin' Bostandzhyan <jin@...>

libubootenv provides fw_printenv/fw_setenv utilities, however they only
work if a correct /etc/fw_env.config file is available.

Signed-off-by: Sergey Bostandzhyan <jin@...>
---
recipes-bsp/u-boot/libubootenv_%.bbappend | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 recipes-bsp/u-boot/libubootenv_%.bbappend

diff --git a/recipes-bsp/u-boot/libubootenv_%.bbappend b/recipes-bsp/u-boot/libubootenv_%.bbappend
new file mode 100644
index 0000000..b0c70ca
--- /dev/null
+++ b/recipes-bsp/u-boot/libubootenv_%.bbappend
@@ -0,0 +1,5 @@
+do_install_append_rk3288() {
+ install -d ${D}${sysconfdir}
+ echo "/dev/${RK_BOOT_DEVICE} 0x3f8000 0x8000" > ${D}${sysconfdir}/fw_env.config
+}
+
--
2.24.1

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.