diff options
author | Leon Anavi <leon.anavi@konsulko.com> | 2020-07-03 10:29:51 +0300 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2020-07-14 18:27:52 +0100 |
commit | 21d38f091848ed427049b0214aebe2f7d243be47 (patch) | |
tree | 2df3b3e51389ddf1c9dc3bbdc9730955a452c91c | |
parent | 31bf9a46fa29c15a284e11c62fef2a334ead55fe (diff) | |
download | meta-raspberrypi-21d38f091848ed427049b0214aebe2f7d243be47.tar.gz |
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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-bsp/u-boot/files/fw_env.config | 1 | ||||
-rw-r--r-- | recipes-bsp/u-boot/libubootenv_%.bbappend | 12 |
2 files changed, 13 insertions, 0 deletions
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 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | SRC_URI_append_rpi = " \ | ||
4 | file://fw_env.config \ | ||
5 | " | ||
6 | |||
7 | DEPENDS_append_rpi = " rpi-u-boot-scr" | ||
8 | |||
9 | do_install_append_rpi () { | ||
10 | install -d ${D}${sysconfdir} | ||
11 | install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config | ||
12 | } | ||