aboutsummaryrefslogtreecommitdiff
path: root/sys/tools
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2014-04-30 20:47:40 +0000
committerWarner Losh <imp@FreeBSD.org>2014-04-30 20:47:40 +0000
commit56d78e82f023cadde8c9d1829b02106de343190e (patch)
treea6e7ccbd7191984ef9a6b224b85e8fe43060768b /sys/tools
parent51ad63daae75fb736d328592043cc8e36cac3f89 (diff)
downloadsrc-56d78e82f023cadde8c9d1829b02106de343190e.tar.gz
src-56d78e82f023cadde8c9d1829b02106de343190e.zip
Turns out this .if evaluated not in the context of the makedtb target
sometimes due to Makefile expansion rules. Make the test for things being NULL elsewhere...
Notes
Notes: svn path=/head/; revision=265162
Diffstat (limited to 'sys/tools')
-rwxr-xr-xsys/tools/fdt/make_dtb.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/tools/fdt/make_dtb.sh b/sys/tools/fdt/make_dtb.sh
index 278b7bb6d15b..272c19b94070 100755
--- a/sys/tools/fdt/make_dtb.sh
+++ b/sys/tools/fdt/make_dtb.sh
@@ -7,6 +7,11 @@ S=$1
dts="$2"
dtb_path=$3
+if [ -n "$dts" ]; then
+ echo "No DTS specified"
+ exit 1
+fi
+
for d in ${dts}; do
dtb=${dtb_path}/`basename $d .dts`.dtb
echo "converting $d -> $dtb"