summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorraj <raj@FreeBSD.org>2010-05-25 15:12:21 +0000
committerraj <raj@FreeBSD.org>2010-05-25 15:12:21 +0000
commit08c219d72b905839e115a4a5bbea2f884fbfa970 (patch)
tree337ce3b203b6619328db0ac41ca74150f12ca7a6 /share/mk
parentaa901e65a10a7edc101824b801707b72c97a506e (diff)
downloadFreeBSD-src-08c219d72b905839e115a4a5bbea2f884fbfa970.zip
FreeBSD-src-08c219d72b905839e115a4a5bbea2f884fbfa970.tar.gz
Introduce a new build knob for Flattened Device Tree support.
Reviewed by: imp Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.own.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index f320694..cb83bdf 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -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})
OpenPOWER on IntegriCloud