svn commit: r240275 - head/sys/boot/uboot/lib

Andrey V. Elsukov ae at FreeBSD.org
Sun Sep 9 11:34:28 UTC 2012


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/
 


More information about the svn-src-all mailing list