diff options
Diffstat (limited to 'meta/files/toolchain-shar-extract.sh')
-rw-r--r-- | meta/files/toolchain-shar-extract.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index 3f54c96cc0..91804ec281 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh | |||
@@ -8,6 +8,20 @@ | |||
8 | [ -f /etc/environment ] && . /etc/environment | 8 | [ -f /etc/environment ] && . /etc/environment |
9 | export PATH=`echo "$PATH" | sed -e 's/:\.//' -e 's/::/:/'` | 9 | export PATH=`echo "$PATH" | sed -e 's/:\.//' -e 's/::/:/'` |
10 | 10 | ||
11 | tweakpath () { | ||
12 | case ":${PATH}:" in | ||
13 | *:"$1":*) | ||
14 | ;; | ||
15 | *) | ||
16 | PATH=$PATH:$1 | ||
17 | esac | ||
18 | } | ||
19 | |||
20 | # Some systems don't have /usr/sbin or /sbin in the cleaned environment PATH but we make need it | ||
21 | # for the system's host tooling checks | ||
22 | tweakpath /usr/sbin | ||
23 | tweakpath /sbin | ||
24 | |||
11 | INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") | 25 | INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") |
12 | SDK_ARCH=$(echo @SDK_ARCH@ | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") | 26 | SDK_ARCH=$(echo @SDK_ARCH@ | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") |
13 | 27 | ||