[PATCH 4/4] ARM: rdu2: include defaultenv from board

Lucas Stach l.stach at pengutronix.de
Tue Jul 18 06:18:37 PDT 2017


Makes it available without the need for a spacial barebox config.

Signed-off-by: Lucas Stach <l.stach at 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




More information about the barebox mailing list