summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2012-11-05 15:06:59 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-12 13:36:39 +0000
commitc04f54352fd09782e7f3fff87f48ad90ae70dbfa (patch)
tree47356bb0506a345643889c281421670e00d67807 /meta
parent35d5e2f67aef361c2ab20ab764142d9f98eed855 (diff)
downloadpoky-c04f54352fd09782e7f3fff87f48ad90ae70dbfa.tar.gz
populate_sdk_base.bbclass: use SDK_ARCH instead of SDKMACHINE
If SDKMACHINE is not set, the toolchain will be built but the tarball installer will not run. A better choice is to use SDK_ARCH because, even if SDKMACHINE is not set, SDK_ARCH is set, by default, to BUILD_HOST. (From OE-Core rev: b6d391903ae8baf902fa142a58533857ade6afd3) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/populate_sdk_base.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index dc715c45b2..ac34c32b52 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -119,9 +119,9 @@ fakeroot create_shar() {
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/") 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/") 122SDK_ARCH=$(echo ${SDK_ARCH} | sed -e "s/i[5-6]86/ix86/")
123 123
124if [ "$INST_ARCH" != "$SDKMACHINE" ]; then 124if [ "$INST_ARCH" != "$SDK_ARCH" ]; then
125 echo "Error: Installation machine not supported!" 125 echo "Error: Installation machine not supported!"
126 exit -1 126 exit -1
127fi 127fi