summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2013-01-22 17:49:51 +0000
committertheraven <theraven@FreeBSD.org>2013-01-22 17:49:51 +0000
commit75dc0fdd3895a77a7b2d8e209f8c69bad8af69aa (patch)
treef6a3cc3c06e558ba27ceb3a9a6669e6a5901c02f /Makefile.inc1
parentcdae92a55c4e92dd3d4caea3c634741a0c168ef5 (diff)
downloadFreeBSD-src-75dc0fdd3895a77a7b2d8e209f8c69bad8af69aa.zip
FreeBSD-src-75dc0fdd3895a77a7b2d8e209f8c69bad8af69aa.tar.gz
Import new (BSDL) device tree compiler. Now built by default, so that it can't
be used on the host system (and not installed on the device, if required). The GPL'd one is still available if there are any devices that need it (make universe passes with it, including kernels that use fdt, but there may be some out-of-tree ones). WITH_GPL_DTC can be used to select the old one, for now. Probably won't be MFC'd, but we'll remove the GPL'd version in head after the new one has had a lot more testing and ship it in 10.0.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc15
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 7584935..c1782f1 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1112,7 +1112,10 @@ _dtrace_tools= cddl/usr.bin/sgsmsg cddl/lib/libctf lib/libelf \
lib/libdwarf cddl/usr.bin/ctfconvert cddl/usr.bin/ctfmerge
.endif
-.if ${MK_FDT} != "no"
+# Default to building the BSDL DTC, but build the GPL one if users explicitly
+# request it.
+_dtc= /usr.bin/dtc
+.if ${MK_GPL_DTC} != "no"
_dtc= gnu/usr.bin/dtc
.endif
OpenPOWER on IntegriCloud