svn commit: r208537 - in head: share/mk tools/build/options
Rafal Jaworowski
raj at FreeBSD.org
Tue May 25 15:12:22 UTC 2010
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.
More information about the svn-src-all
mailing list