diff options
author | ian <ian@FreeBSD.org> | 2014-08-30 22:39:15 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-08-30 22:39:15 +0000 |
commit | 40fec780e981dc512fec901bd970bb607592dad4 (patch) | |
tree | b89362a61b09c9885b63c6851fba7be06f31f254 /sys/tools | |
parent | 60d54c4d443dc3566e2fec61d5f7fcffab321426 (diff) | |
download | FreeBSD-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-x | sys/tools/fdt/make_dtb.sh | 4 |
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" |