Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Sep 2012 11:34:28 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240275 - head/sys/boot/uboot/lib
Message-ID:  <201209091134.q89BYSIX065208@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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/
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209091134.q89BYSIX065208>