summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2012-11-01 15:23:02 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-02 16:18:31 +0000
commitce7e817b49f62db73c6fd0a27cca9f6c0028bf3e (patch)
tree5b8904b11b618c31bcd508b36fced16a22d365b6 /meta/classes
parent97469db0cba6d21ab1290238225d3fe365931a5c (diff)
downloadpoky-ce7e817b49f62db73c6fd0a27cca9f6c0028bf3e.tar.gz
populate_sdk_base.bbclass: check installation machine before installing SDK
Do not allow installer to continue if the installation machine architecture does not match the intended SDK machine architecture. [YOCTO: #3269] (From OE-Core rev: 1f78e2c97f978f0f02e884870e7c495751f0802c) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/populate_sdk_base.bbclass8
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
121INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/")
122SDKMACHINE=$(echo ${SDKMACHINE} | sed -e "s/i[5-6]86/ix86/")
123
124if [ "$INST_ARCH" != "$SDKMACHINE" ]; then
125 echo "Error: Installation machine not supported!"
126 exit -1
127fi
128
121DEFAULT_INSTALL_DIR="${SDKPATH}" 129DEFAULT_INSTALL_DIR="${SDKPATH}"
122COMPONENTS_LEN=$(echo ".${SDKPATH}" | sed "s/\// /g" | wc -w) 130COMPONENTS_LEN=$(echo ".${SDKPATH}" | sed "s/\// /g" | wc -w)
123 131