]> code.ossystems Code Review - openembedded-core.git/commitdiff
csl-versions.inc: instruct user to check local.conf
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Fri, 26 Jul 2013 12:31:27 +0000 (15:31 +0300)
committerSaul Wold <sgw@linux.intel.com>
Tue, 30 Jul 2013 14:25:40 +0000 (07:25 -0700)
In case the compiler version cannot be extracted instruct user to check
that the toolchain supports MACHINE's architecture and that the latter
is set correctly in local.conf.

[YOCTO #4901]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/conf/distro/include/csl-versions.inc

index f3b491cb16a0be0e44ef270834c9549e250ff96e..3938bf7ed201ebc211ec6b9937902cd62f34918d 100644 (file)
@@ -18,6 +18,7 @@ def csl_get_version(d):
                stdout, stderr = csl_run(d, 'gcc', '-v')
        except bb.process.CmdError as exc:
                bb.error('Failed to obtain CodeSourcery toolchain version: %s' % exc)
+               bb.error('Make sure that MACHINE is set correctly in your local.conf and the toolchain supports %s.' % d.getVar("TARGET_ARCH", True))
                return 'UNKNOWN'
        else:
                last_line = stderr.splitlines()[-1]