summaryrefslogtreecommitdiffstats
path: root/sys/boot/uboot
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2012-09-09 11:34:27 +0000
committerae <ae@FreeBSD.org>2012-09-09 11:34:27 +0000
commit8e111ce458a0ae4a50211dca2ccf35dd121b345e (patch)
treee35004ec40b4b3eeb1a9e8c131dc637da35327b8 /sys/boot/uboot
parent7213414c9edc4ccf80f8aee9aaa6e1fa43b5b9dc (diff)
downloadFreeBSD-src-8e111ce458a0ae4a50211dca2ccf35dd121b345e.zip
FreeBSD-src-8e111ce458a0ae4a50211dca2ccf35dd121b345e.tar.gz
Build disk.c only when DISK_SUPPORT is enabled.
Diffstat (limited to 'sys/boot/uboot')
-rw-r--r--sys/boot/uboot/lib/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/boot/uboot/lib/Makefile b/sys/boot/uboot/lib/Makefile
index 75bc973..7908f24 100644
--- a/sys/boot/uboot/lib/Makefile
+++ b/sys/boot/uboot/lib/Makefile
@@ -6,13 +6,18 @@ LIB= uboot
INTERNALLIB=
WARNS?= 2
-SRCS= crc32.c console.c copy.c devicename.c disk.c elf_freebsd.c glue.c
+SRCS= crc32.c console.c copy.c devicename.c elf_freebsd.c glue.c
SRCS+= module.c net.c reboot.c time.c
CFLAGS+= -ffreestanding -msoft-float
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
+.if !defined(LOADER_NO_DISK_SUPPORT)
+SRCS+= disk.c
+CFLAGS+= -DLOADER_DISK_SUPPORT
+.endif
+
# Pick up FDT includes
CFLAGS+= -I${.CURDIR}/../../../../sys/contrib/libfdt/
OpenPOWER on IntegriCloud