summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/boot/common/module.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c
index cea01c0..c7d19d1 100644
--- a/sys/boot/common/module.c
+++ b/sys/boot/common/module.c
@@ -65,7 +65,12 @@ static void moduledir_rebuild(void);
/* load address should be tweaked by first module loaded (kernel) */
static vm_offset_t loadaddr = 0;
+#if defined(LOADER_FDT_SUPPORT)
+static const char *default_searchpath =
+ "/boot/kernel;/boot/modules;/boot/dtb";
+#else
static const char *default_searchpath ="/boot/kernel;/boot/modules";
+#endif
static STAILQ_HEAD(, moduledir) moduledir_list = STAILQ_HEAD_INITIALIZER(moduledir_list);
OpenPOWER on IntegriCloud