Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 2010 15:12:21 +0000 (UTC)
From:      Rafal Jaworowski <raj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r208537 - in head: share/mk tools/build/options
Message-ID:  <201005251512.o4PFCLwl058548@svn.freebsd.org>

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



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