diff options
author | Ian Lepore <ian@FreeBSD.org> | 2014-08-30 22:39:15 +0000 |
---|---|---|
committer | Ian Lepore <ian@FreeBSD.org> | 2014-08-30 22:39:15 +0000 |
commit | 1ec2d237e0210179919fb9dbf0d35fd44810a8dd (patch) | |
tree | b89362a61b09c9885b63c6851fba7be06f31f254 | |
parent | 4863c75af7db74ec28f24bc6486e90962f2c4eeb (diff) | |
download | src-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
-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 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" |