From owner-svn-src-all@FreeBSD.ORG Tue May 25 15:12:22 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BEBD106567B; Tue, 25 May 2010 15:12:22 +0000 (UTC) (envelope-from raj@FreeBSD.org) Received: from svn.freebsd.org (unknown [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0AC018FC12; Tue, 25 May 2010 15:12:22 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o4PFCLhj058551; Tue, 25 May 2010 15:12:21 GMT (envelope-from raj@svn.freebsd.org) Received: (from raj@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o4PFCLwl058548; Tue, 25 May 2010 15:12:21 GMT (envelope-from raj@svn.freebsd.org) Message-Id: <201005251512.o4PFCLwl058548@svn.freebsd.org> From: Rafal Jaworowski Date: Tue, 25 May 2010 15:12:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r208537 - in head: share/mk tools/build/options X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2010 15:12:22 -0000 Author: raj Date: Tue May 25 15:12:21 2010 New Revision: 208537 URL: http://svn.freebsd.org/changeset/base/208537 Log: Introduce a new build knob for Flattened Device Tree support. Reviewed by: imp Sponsored by: The FreeBSD Foundation Added: head/tools/build/options/WITH_FDT (contents, props changed) Modified: head/share/mk/bsd.own.mk Modified: head/share/mk/bsd.own.mk ============================================================================== --- head/share/mk/bsd.own.mk Tue May 25 13:27:55 2010 (r208536) +++ head/share/mk/bsd.own.mk Tue May 25 15:12:21 2010 (r208537) @@ -278,6 +278,16 @@ WITH_HESIOD= WITH_IDEA= .endif +# Enable FDT by default for selected platforms. +.if defined(TARGET_ARCH) && \ + (${TARGET_ARCH} == "arm" || ${TARGET_ARCH} == "powerpc") +# XXX this is temporarily disabled until all FDT support code is in place. +#_fdt= FDT +_no_fdt= FDT +.else +_no_fdt= FDT +.endif + # # MK_* options which default to "yes". # @@ -313,6 +323,7 @@ WITH_IDEA= DICT \ DYNAMICROOT \ EXAMPLES \ + ${_fdt} \ FLOPPY \ FORTH \ FP_LIBC \ @@ -407,6 +418,7 @@ MK_${var}:= yes BIND_LIBS \ BIND_SIGCHASE \ BIND_XML \ + ${_no_fdt} \ HESIOD \ IDEA .if defined(WITH_${var}) && defined(WITHOUT_${var}) Added: head/tools/build/options/WITH_FDT ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/build/options/WITH_FDT Tue May 25 15:12:21 2010 (r208537) @@ -0,0 +1,3 @@ +.\" $FreeBSD$ +Set to build Flattened Device Tree support as part of the base system. This +includes the device tree compiler (dtc) and libfdt support library.