aboutsummaryrefslogtreecommitdiff
path: root/sys/tools
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2017-06-17 23:34:53 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2017-06-17 23:34:53 +0000
commit46375c65f6c2a626f1ae75694ca8a3cf446ce5e7 (patch)
tree5af473758e7369e336ad1c5b74ed49306e27dd43 /sys/tools
parent823973407906c4f3e9d7bf700d7829dc54daadc2 (diff)
downloadsrc-46375c65f6c2a626f1ae75694ca8a3cf446ce5e7.tar.gz
src-46375c65f6c2a626f1ae75694ca8a3cf446ce5e7.zip
make.conf: Add the possibility to use another DTC
Add a make.conf DTC variable that control which DTC (Device Tree Compiler) to use. Reviewed by: bdrewery, imp Differential Revision: https://reviews.freebsd.org/D9577
Notes
Notes: svn path=/head/; revision=320064
Diffstat (limited to 'sys/tools')
-rwxr-xr-xsys/tools/fdt/make_dtb.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/tools/fdt/make_dtb.sh b/sys/tools/fdt/make_dtb.sh
index e7138a8790c2..f2becbe6218d 100755
--- a/sys/tools/fdt/make_dtb.sh
+++ b/sys/tools/fdt/make_dtb.sh
@@ -16,9 +16,11 @@ if [ -z "${MACHINE}" ]; then
MACHINE=$(uname -m)
fi
+: ${DTC:=dtc}
+
for d in ${dts}; do
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