summaryrefslogtreecommitdiffstats
path: root/meta/files/toolchain-shar-extract.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/files/toolchain-shar-extract.sh')
-rw-r--r--meta/files/toolchain-shar-extract.sh14
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
9export PATH=`echo "$PATH" | sed -e 's/:\.//' -e 's/::/:/'` 9export PATH=`echo "$PATH" | sed -e 's/:\.//' -e 's/::/:/'`
10 10
11tweakpath () {
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
22tweakpath /usr/sbin
23tweakpath /sbin
24
11INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") 25INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/")
12SDK_ARCH=$(echo @SDK_ARCH@ | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") 26SDK_ARCH=$(echo @SDK_ARCH@ | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/")
13 27