diff options
author | ian <ian@FreeBSD.org> | 2014-10-26 02:21:54 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-10-26 02:21:54 +0000 |
commit | a50392e6719f58f229ac31bf7db99bb4227e9065 (patch) | |
tree | 8c2f340d68f5e2920ee2ea6088c6cca9afa72db8 /sys/boot/common | |
parent | d41355d9bfa1b106803009c608ab31a54f1f4a80 (diff) | |
download | FreeBSD-src-a50392e6719f58f229ac31bf7db99bb4227e9065.zip FreeBSD-src-a50392e6719f58f229ac31bf7db99bb4227e9065.tar.gz |
MFC r271054:
When built with FDT support, add /boot/dtb to the list of search directories.
Diffstat (limited to 'sys/boot/common')
-rw-r--r-- | sys/boot/common/module.c | 5 |
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); |