summaryrefslogtreecommitdiffstats
path: root/arch/nios2/boards/generic/generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nios2/boards/generic/generic.c')
-rw-r--r--arch/nios2/boards/generic/generic.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/nios2/boards/generic/generic.c b/arch/nios2/boards/generic/generic.c
index 61b60b6fd9..0c2c67c567 100644
--- a/arch/nios2/boards/generic/generic.c
+++ b/arch/nios2/boards/generic/generic.c
@@ -4,6 +4,7 @@
#include <partition.h>
#include <fs.h>
#include <memory.h>
+#include <envfs.h>
static int phy_address = 1;
@@ -52,6 +53,9 @@ static int generic_devices_init(void)
protect_file("/dev/env0", 1);
+ if (IS_ENABLED(CONFIG_DEFAULT_ENVIRONMENT_GENERIC))
+ defaultenv_append_directory(defaultenv_generic);
+
return 0;
}