Author: ae
Date: Sun Sep  9 11:34:27 2012
New Revision: 240275
URL: http://svn.freebsd.org/changeset/base/240275

Log:
  Build disk.c only when DISK_SUPPORT is enabled.

Modified:
  head/sys/boot/uboot/lib/Makefile

Modified: head/sys/boot/uboot/lib/Makefile
==============================================================================
--- head/sys/boot/uboot/lib/Makefile    Sun Sep  9 11:33:06 2012        
(r240274)
+++ head/sys/boot/uboot/lib/Makefile    Sun Sep  9 11:34:27 2012        
(r240275)
@@ -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/
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to