summaryrefslogtreecommitdiffstats
path: root/bin/ptxdist
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2014-03-03 11:14:20 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-03-03 16:52:16 +0100
commita292c644c731190ab87a271fabb21d1cd2c00789 (patch)
treefafe70aa6e8c2f0c3dcfed2a3a47d058063abfdf /bin/ptxdist
parentea29a0a27fa0bb1fbcdf755011547c0804476416 (diff)
downloadptxdist-a292c644c731190ab87a271fabb21d1cd2c00789.tar.gz
ptxdist-a292c644c731190ab87a271fabb21d1cd2c00789.tar.xz
ptxdist: fix check_compiler when building toolchains
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin/ptxdist')
-rwxr-xr-xbin/ptxdist5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 1fa5ff0e3..c2a962450 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -605,7 +605,10 @@ check_compiler() {
}
done
- ptxd_get_ptxconf PTXCONF_BUILD_TOOLCHAIN >/dev/null && return || true
+ if ptxd_get_ptxconf PTXCONF_BUILD_TOOLCHAIN >/dev/null; then
+ PATH="${wrapper_dir}:${PATH}"
+ return
+ fi
#
# Three things should be checked