aboutsummaryrefslogtreecommitdiff
path: root/sys/tools
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2014-08-30 22:39:15 +0000
committerIan Lepore <ian@FreeBSD.org>2014-08-30 22:39:15 +0000
commit1ec2d237e0210179919fb9dbf0d35fd44810a8dd (patch)
treeb89362a61b09c9885b63c6851fba7be06f31f254 /sys/tools
parent4863c75af7db74ec28f24bc6486e90962f2c4eeb (diff)
downloadsrc-1ec2d237e0210179919fb9dbf0d35fd44810a8dd.tar.gz
src-1ec2d237e0210179919fb9dbf0d35fd44810a8dd.zip
Allow the make_dtb script to work outside of a "make buildkernel" context
by setting MACHINE from uname -m if it's not set already. Reviewed by: imp, tuexen
Notes
Notes: svn path=/head/; revision=270863
Diffstat (limited to 'sys/tools')
-rwxr-xr-xsys/tools/fdt/make_dtb.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/tools/fdt/make_dtb.sh b/sys/tools/fdt/make_dtb.sh
index f994ce52e84e..643fdd6d7df9 100755
--- a/sys/tools/fdt/make_dtb.sh
+++ b/sys/tools/fdt/make_dtb.sh
@@ -12,6 +12,10 @@ if [ -z "$dts" ]; then
exit 1
fi
+if [ -z "${MACHINE}" ]; then
+ MACHINE=$(uname -m)
+fi
+
for d in ${dts}; do
dtb=${dtb_path}/`basename $d .dts`.dtb
echo "converting $d -> $dtb"