From: Lucas Stach <l.stach@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 4/4] ARM: rdu2: include defaultenv from board
Date: Tue, 18 Jul 2017 15:18:37 +0200 [thread overview]
Message-ID: <20170718131837.26877-4-l.stach@pengutronix.de> (raw)
In-Reply-To: <20170718131837.26877-1-l.stach@pengutronix.de>
Makes it available without the need for a spacial barebox config.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/boards/zii-imx6q-rdu2/Makefile | 1 +
arch/arm/boards/zii-imx6q-rdu2/board.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/arch/arm/boards/zii-imx6q-rdu2/Makefile b/arch/arm/boards/zii-imx6q-rdu2/Makefile
index 01c7a259e9a5..c6285362f2ee 100644
--- a/arch/arm/boards/zii-imx6q-rdu2/Makefile
+++ b/arch/arm/boards/zii-imx6q-rdu2/Makefile
@@ -1,2 +1,3 @@
obj-y += board.o
lwl-y += lowlevel.o
+bbenv-y += defaultenv-rdu2
diff --git a/arch/arm/boards/zii-imx6q-rdu2/board.c b/arch/arm/boards/zii-imx6q-rdu2/board.c
index 85140f8b5c61..265f97e2f464 100644
--- a/arch/arm/boards/zii-imx6q-rdu2/board.c
+++ b/arch/arm/boards/zii-imx6q-rdu2/board.c
@@ -14,6 +14,7 @@
*/
#include <common.h>
+#include <envfs.h>
#include <gpio.h>
#include <init.h>
#include <mach/bbu.h>
@@ -145,6 +146,8 @@ static int rdu2_devices_init(void)
imx6_bbu_internal_mmc_register_handler("eMMC", "/dev/mmc3", 0);
+ defaultenv_append_directory(defaultenv_rdu2);
+
return 0;
}
device_initcall(rdu2_devices_init);
--
2.11.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2017-07-18 13:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-18 13:18 [PATCH 1/4] ARM: rdu2: use the upstream accepted DT Lucas Stach
2017-07-18 13:18 ` [PATCH 2/4] ARM: rdu2: remove USB VBUS GPIO init Lucas Stach
2017-07-18 13:18 ` [PATCH 3/4] ARM: rdu2: remove unecessary includes Lucas Stach
2017-07-18 13:18 ` Lucas Stach [this message]
2017-07-18 16:11 ` [PATCH 4/4] ARM: rdu2: include defaultenv from board Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170718131837.26877-4-l.stach@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox