svn commit: r208537 - in head: share/mk tools/build/options

2010-05-25 Thread Rafal Jaworowski
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.mkTue May 25 13:27:55 2010(r208536)
+++ head/share/mk/bsd.own.mkTue 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.
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r208537 - in head: share/mk tools/build/options

2010-05-25 Thread M. Warner Losh
In message: 201005251512.o4pfclwl058...@svn.freebsd.org
Rafal Jaworowski r...@freebsd.org writes:
: +# 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

The tests here should be:

.if ${MACHINE_ARCH} == arm || ${MACHINE_ARCH} == powerpc

Never test against TARGET_* in our Makefile system (except that
binutils, gcc and gdb all use this for piecewise compile)...

Warner
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org