diff options
author | raj <raj@FreeBSD.org> | 2010-05-25 15:12:21 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2010-05-25 15:12:21 +0000 |
commit | 08c219d72b905839e115a4a5bbea2f884fbfa970 (patch) | |
tree | 337ce3b203b6619328db0ac41ca74150f12ca7a6 | |
parent | aa901e65a10a7edc101824b801707b72c97a506e (diff) | |
download | FreeBSD-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
-rw-r--r-- | share/mk/bsd.own.mk | 12 | ||||
-rw-r--r-- | tools/build/options/WITH_FDT | 3 |
2 files changed, 15 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}) diff --git a/tools/build/options/WITH_FDT b/tools/build/options/WITH_FDT new file mode 100644 index 0000000..5abb4e8 --- /dev/null +++ b/tools/build/options/WITH_FDT @@ -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. |