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
This commit is contained in:
Ian Lepore 2014-08-30 22:39:15 +00:00
parent 4863c75af7
commit 1ec2d237e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270863

View file

@ -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"