]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_base.bbclass: use SDK_ARCH instead of SDKMACHINE
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Mon, 5 Nov 2012 13:06:59 +0000 (15:06 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Nov 2012 12:43:46 +0000 (12:43 +0000)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_base.bbclass

index dc715c45b25e073239cc4b33ad169608c54b9e05..ac34c32b52de5b587f1ed84661a6b98051c22597 100644 (file)
@@ -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