Index: share/man/man5/make.conf.5 =================================================================== --- share/man/man5/make.conf.5 +++ share/man/man5/make.conf.5 @@ -176,6 +176,11 @@ .Dq Li += instead of .Dq Li = . +.It Va DTC +.Pq Vt str +Select the compiler for DTS (Device Tree Syntax) file. +.Va DTC +is initially set to the value of /usr/bin/dtc .It Va INSTALL .Pq Vt str the default install command. Index: sys/conf/kmod.mk =================================================================== --- sys/conf/kmod.mk +++ sys/conf/kmod.mk @@ -64,6 +64,7 @@ # AWK?= awk +DTC?= /usr/bin/dtc KMODLOAD?= /sbin/kldload KMODUNLOAD?= /sbin/kldunload KMODISLOADED?= /sbin/kldstat -q -n Index: sys/tools/fdt/make_dtb.sh =================================================================== --- sys/tools/fdt/make_dtb.sh +++ sys/tools/fdt/make_dtb.sh @@ -20,5 +20,5 @@ dtb=${dtb_path}/`basename $d .dts`.dtb echo "converting $d -> $dtb" cpp -P -x assembler-with-cpp -I $S/gnu/dts/include -I $S/boot/fdt/dts/${MACHINE} -I $S/gnu/dts/${MACHINE} -include $d /dev/null | - dtc -O dtb -o $dtb -b 0 -p 1024 -i $S/boot/fdt/dts/${MACHINE} -i $S/gnu/dts/${MACHINE} + ${DTC} -O dtb -o $dtb -b 0 -p 1024 -i $S/boot/fdt/dts/${MACHINE} -i $S/gnu/dts/${MACHINE} done