Patchwork populate_sdk_base.bbclass: use SDK_ARCH instead of SDKMACHINE

login
register
mail settings
Submitter Laurentiu Palcu
Date Nov. 5, 2012, 1:06 p.m.
Message ID <1352120820-21261-1-git-send-email-laurentiu.palcu@intel.com>
Download mbox | patch
Permalink /patch/38785/
State Accepted
Commit c04f54352fd09782e7f3fff87f48ad90ae70dbfa
Headers show

Comments

Laurentiu Palcu - Nov. 5, 2012, 1:06 p.m.
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.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
 meta/classes/populate_sdk_base.bbclass |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index dc715c4..ac34c32 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -119,9 +119,9 @@  fakeroot create_shar() {
 #!/bin/bash
 
 INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/")
-SDKMACHINE=$(echo ${SDKMACHINE} | sed -e "s/i[5-6]86/ix86/")
+SDK_ARCH=$(echo ${SDK_ARCH} | sed -e "s/i[5-6]86/ix86/")
 
-if [ "$INST_ARCH" != "$SDKMACHINE" ]; then
+if [ "$INST_ARCH" != "$SDK_ARCH" ]; then
 	echo "Error: Installation machine not supported!"
 	exit -1
 fi