diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-06-17 16:52:43 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-06-20 09:26:03 +0200 |
commit | aa05a4adbab3648bb5a3b0632f6d61b58502f27b (patch) | |
tree | 4a74752299134a9f3ed8c765527a6a65754fe9aa /scripts | |
parent | 73e71be0770721cdd55f9e5873ba4aa1d3b38cd7 (diff) | |
download | ptxdist-aa05a4adbab3648bb5a3b0632f6d61b58502f27b.tar.gz ptxdist-aa05a4adbab3648bb5a3b0632f6d61b58502f27b.tar.xz |
ptxdist: set PTXDIST_PATH correctly if ptxdist is called from PTXDIST_TOPDIR
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_lib_00-init.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_lib_00-init.sh b/scripts/lib/ptxd_lib_00-init.sh index 4ea01f93f..17ddae614 100644 --- a/scripts/lib/ptxd_lib_00-init.sh +++ b/scripts/lib/ptxd_lib_00-init.sh @@ -51,8 +51,10 @@ ptxd_init_get_sysroot_base_platform() { ptxd_init_ptxdist_path() { if [ "${PTXDIST_WORKSPACE}" != "${PTXDIST_PLATFORMCONFIGDIR}" ]; then PTXDIST_PATH="${PTXDIST_WORKSPACE}:${PTXDIST_PLATFORMCONFIGDIR}:${PTXDIST_TOPDIR}:" - else + elif [ "${PTXDIST_WORKSPACE}" != "${PTXDIST_TOPDIR}" ]; then PTXDIST_PATH="${PTXDIST_WORKSPACE}:${PTXDIST_TOPDIR}:" + else + PTXDIST_PATH="${PTXDIST_WORKSPACE}:" fi export PTXDIST_PATH |