summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-10-26 02:21:54 +0000
committerian <ian@FreeBSD.org>2014-10-26 02:21:54 +0000
commita50392e6719f58f229ac31bf7db99bb4227e9065 (patch)
tree8c2f340d68f5e2920ee2ea6088c6cca9afa72db8
parentd41355d9bfa1b106803009c608ab31a54f1f4a80 (diff)
downloadFreeBSD-src-a50392e6719f58f229ac31bf7db99bb4227e9065.zip
FreeBSD-src-a50392e6719f58f229ac31bf7db99bb4227e9065.tar.gz
MFC r271054:
When built with FDT support, add /boot/dtb to the list of search directories.
-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