summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-11-02 00:26:45 +0000
committermarcel <marcel@FreeBSD.org>2006-11-02 00:26:45 +0000
commit342a196627392c808be27a4df1e402e127c19a0a (patch)
tree47949f724fc6abd132515557c85706342b9f7e4d /sys/boot/common
parente9bd2a214c5d2115ed906a577a04c8f71f8cae85 (diff)
downloadFreeBSD-src-342a196627392c808be27a4df1e402e127c19a0a.zip
FreeBSD-src-342a196627392c808be27a4df1e402e127c19a0a.tar.gz
Don't unconditionally compile-in the bcache code. It's only used on
i386/amd64 and pc98. Remove useless calls to bcache_init() from the ia64 and sparc64 loaders, as well as from the OFW common code.
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/Makefile.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/boot/common/Makefile.inc b/sys/boot/common/Makefile.inc
index bc18830..753d112 100644
--- a/sys/boot/common/Makefile.inc
+++ b/sys/boot/common/Makefile.inc
@@ -1,6 +1,6 @@
# $FreeBSD$
-SRCS+= bcache.c boot.c commands.c console.c devopen.c interp.c
+SRCS+= boot.c commands.c console.c devopen.c interp.c
SRCS+= interp_backslash.c interp_parse.c ls.c misc.c
SRCS+= module.c panic.c
@@ -19,6 +19,10 @@ SRCS+= load_elf64.c reloc_elf64.c
SRCS+= dev_net.c
.endif
+.if defined(HAVE_BCACHE)
+SRCS+= bcache.c
+.endif
+
# Machine-independant ISA PnP
.if defined(HAVE_ISABUS)
SRCS+= isapnp.c
OpenPOWER on IntegriCloud