summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-07-03 11:46:36 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-07-03 11:46:41 +0200
commit1da9ac96647afe145182ada9399ee56f31a4cc6f (patch)
tree48b186e7a278b1650102200d11549e2658cdc997 /bin
parent10f8d117030c31865e653b2642ef1990ececcc08 (diff)
downloadptxdist-1da9ac96647afe145182ada9399ee56f31a4cc6f.tar.gz
ptxdist-1da9ac96647afe145182ada9399ee56f31a4cc6f.tar.xz
ptxdist: try to keep PTXDIST_PLATFORMCONFIGDIR relative to PTXDIST_WORKSPACE
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index e96201e5f..25eb1ffa5 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -2235,7 +2235,8 @@ setup_platform() {
[ -e "${cfg_file}" ] || continue
cfg_file="$(readlink -f "${cfg_file}")" || return
- cfg_dir="${cfg_file%/*}"
+ cfg_dir="$(dirname "${cfg_file}")"
+ cfg_dir="${cfg_dir/#$(readlink -f "${PTXDIST_WORKSPACE}")/${PTXDIST_WORKSPACE}}"
break
done