diff options
author | ian <ian@FreeBSD.org> | 2014-09-03 21:25:36 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-09-03 21:25:36 +0000 |
commit | a7ba3ba3e59aeeeaf22154907f32734306ff734b (patch) | |
tree | eb3befff22c94560d667d72f95cfa2e5060bf88d /sys/boot | |
parent | 20b2f6f50116d53181aa9f2810bba9cc9dbdbe02 (diff) | |
download | FreeBSD-src-a7ba3ba3e59aeeeaf22154907f32734306ff734b.zip FreeBSD-src-a7ba3ba3e59aeeeaf22154907f32734306ff734b.tar.gz |
When built with FDT support, add /boot/dtb to the list of search directories.
Diffstat (limited to 'sys/boot')
-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 e1170bb..a4bb215 100644 --- a/sys/boot/common/module.c +++ b/sys/boot/common/module.c @@ -66,7 +66,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); |