[rtems commit] Allow rtems-bsps to be run from any path.
Chris Johns
chrisj at rtems.org
Mon Apr 9 04:57:24 UTC 2018
Module: rtems
Branch: master
Commit: 1ce7bcb950976764f0e6a3b782a65cd21c9e8d2d
Changeset: http://git.rtems.org/rtems/commit/?id=1ce7bcb950976764f0e6a3b782a65cd21c9e8d2d
Author: Chris Johns <chrisj at rtems.org>
Date: Mon Apr 9 14:56:43 2018 +1000
Allow rtems-bsps to be run from any path.
---
rtems-bsps | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/rtems-bsps b/rtems-bsps
index cff020f..6bee5fa 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=""
More information about the vc
mailing list