Introduce a new build knob for Flattened Device Tree support.

Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Rafal Jaworowski 2010-05-25 15:12:21 +00:00
parent a95b1d6c6a
commit 4f1ca2a872
2 changed files with 15 additions and 0 deletions

View File

@ -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})

View File

@ -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.