From 27d0016b6b7634ea2abf26a06b1ab8071fbdb0d5 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Fri, 3 Jul 2020 10:29:51 +0300 Subject: [PATCH] libubootenv_%.bbappend: Add fw_env.config Add fw_env.config that uses at run-time /boot/uboot.env generated through the boot scripts (specifically boot.cmd.in) from recipe rpi-u-boot-scr. This configuration file is required to successfully run fw_printenv from the user space. Signed-off-by: Leon Anavi --- recipes-bsp/u-boot/files/fw_env.config | 1 + recipes-bsp/u-boot/libubootenv_%.bbappend | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 recipes-bsp/u-boot/files/fw_env.config create mode 100644 recipes-bsp/u-boot/libubootenv_%.bbappend diff --git a/recipes-bsp/u-boot/files/fw_env.config b/recipes-bsp/u-boot/files/fw_env.config new file mode 100644 index 0000000..d00df0c --- /dev/null +++ b/recipes-bsp/u-boot/files/fw_env.config @@ -0,0 +1 @@ +/boot/uboot.env 0x0000 0x4000 diff --git a/recipes-bsp/u-boot/libubootenv_%.bbappend b/recipes-bsp/u-boot/libubootenv_%.bbappend new file mode 100644 index 0000000..22d1bdc --- /dev/null +++ b/recipes-bsp/u-boot/libubootenv_%.bbappend @@ -0,0 +1,12 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SRC_URI_append_rpi = " \ + file://fw_env.config \ +" + +DEPENDS_append_rpi = " rpi-u-boot-scr" + +do_install_append_rpi () { + install -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config +}