All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] u-boot-fw-utils: Allow replacement of fw_env.config
@ 2017-06-20 22:15 Otavio Salvador
  2017-06-20 23:55 ` Denys Dmytriyenko
  0 siblings, 1 reply; 8+ messages in thread
From: Otavio Salvador @ 2017-06-20 22:15 UTC (permalink / raw)
  To: OpenEmbedded Core Mailing List
  Cc: marex, trini, Otavio Salvador, brad.mouring

If a fw_env.config file is found in workdir, this is preferred over
the U-Boot example.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

 meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb
index c2e8f0fb84..0682f9274b 100644
--- a/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb
@@ -19,7 +19,14 @@ do_install () {
 	install -d ${D}${sysconfdir}
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
-	install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
+
+	# If a specific file is added in a .bbappend, this is used instead
+	# of the generic one
+	if [ -e ${WORKDIR}/fw_env.config ]; then
+		install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
+	else
+		install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config.example
+	fi
 }
 
 do_install_class-cross () {
-- 
2.13.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-06-21 18:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-20 22:15 [PATCH] u-boot-fw-utils: Allow replacement of fw_env.config Otavio Salvador
2017-06-20 23:55 ` Denys Dmytriyenko
2017-06-21 12:03   ` Tom Rini
2017-06-21 15:50     ` Denys Dmytriyenko
2017-06-21 16:52       ` Tom Rini
2017-06-21 18:01         ` Otavio Salvador
2017-06-21 18:17           ` Tom Rini
2017-06-21 15:25   ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.