summaryrefslogtreecommitdiffstats
path: root/sys/tools
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-08-30 22:39:15 +0000
committerian <ian@FreeBSD.org>2014-08-30 22:39:15 +0000
commit40fec780e981dc512fec901bd970bb607592dad4 (patch)
treeb89362a61b09c9885b63c6851fba7be06f31f254 /sys/tools
parent60d54c4d443dc3566e2fec61d5f7fcffab321426 (diff)
downloadFreeBSD-src-40fec780e981dc512fec901bd970bb607592dad4.zip
FreeBSD-src-40fec780e981dc512fec901bd970bb607592dad4.tar.gz
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
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 f994ce5..643fdd6 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"
OpenPOWER on IntegriCloud