summaryrefslogtreecommitdiff
path: root/rtems-bsps
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-04-09 14:56:43 +1000
committerChris Johns <chrisj@rtems.org>2018-04-09 14:56:43 +1000
commit1ce7bcb950976764f0e6a3b782a65cd21c9e8d2d (patch)
tree66b7ae13ceb1868624c4ff82d34eeb67469d65c2 /rtems-bsps
parentd03ec77d098610f1067b3e408dcf5a02f955ba6e (diff)
Allow rtems-bsps to be run from any path.
Diffstat (limited to 'rtems-bsps')
-rwxr-xr-xrtems-bsps3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtems-bsps b/rtems-bsps
index cff020fbb3..6bee5fa7e0 100755
--- a/rtems-bsps
+++ b/rtems-bsps
@@ -1,6 +1,7 @@
#! /bin/sh
-base="c/src/lib/libbsp"
+top=$(dirname $0)
+base="${top}/c/src/lib/libbsp"
base_e=$(echo ${base} | sed -e 's/\//\\\//g')
last_arch=""