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 <leon.anavi@konsulko.com>
This commit is contained in:
Leon Anavi 2020-07-03 10:29:51 +03:00 committed by Andrei Gherzan
parent 64bd47fe58
commit 27d0016b6b
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1 @@
/boot/uboot.env 0x0000 0x4000

View File

@ -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
}