mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-19 16:23:29 +00:00
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:
parent
4863c75af7
commit
1ec2d237e0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270863
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue