diff options
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index a3ac757b23..dc715c45b2 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass | |||
@@ -118,6 +118,14 @@ fakeroot create_shar() { | |||
118 | cat << "EOF" > ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh | 118 | cat << "EOF" > ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh |
119 | #!/bin/bash | 119 | #!/bin/bash |
120 | 120 | ||
121 | INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") | ||
122 | SDKMACHINE=$(echo ${SDKMACHINE} | sed -e "s/i[5-6]86/ix86/") | ||
123 | |||
124 | if [ "$INST_ARCH" != "$SDKMACHINE" ]; then | ||
125 | echo "Error: Installation machine not supported!" | ||
126 | exit -1 | ||
127 | fi | ||
128 | |||
121 | DEFAULT_INSTALL_DIR="${SDKPATH}" | 129 | DEFAULT_INSTALL_DIR="${SDKPATH}" |
122 | COMPONENTS_LEN=$(echo ".${SDKPATH}" | sed "s/\// /g" | wc -w) | 130 | COMPONENTS_LEN=$(echo ".${SDKPATH}" | sed "s/\// /g" | wc -w) |
123 | 131 | ||