summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
Diffstat (limited to 'bsp')
-rwxr-xr-xbsp/update-targets.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/bsp/update-targets.sh b/bsp/update-targets.sh
index b05731a..27f1e28 100755
--- a/bsp/update-targets.sh
+++ b/bsp/update-targets.sh
@@ -11,6 +11,15 @@ $0: BSP Generator for the SiFive Freedom E SDK
EOF
}
+warn () {
+ echo "$0:" "$@" >&2
+}
+die () {
+ shift
+ warn "$@"
+ exit 1
+}
+
unset DTSFILE
unset CUSTOM_PATH
unset CUSTOM_NAME