Patchwork [1/1] csl-versions.inc: instruct user to check local.conf

login
register
mail settings
Submitter Laurentiu Palcu
Date July 26, 2013, 12:31 p.m.
Message ID <d330d061f5a298f09d441b9b43db50499eb75c37.1374841557.git.laurentiu.palcu@intel.com>
Download mbox | patch
Permalink /patch/54589/
State Accepted
Commit f2b19ad4ab484c57494fc577193bd99b0481bf7c
Headers show

Comments

Laurentiu Palcu - July 26, 2013, 12:31 p.m.
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>
---
 meta/conf/distro/include/csl-versions.inc |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/conf/distro/include/csl-versions.inc b/meta/conf/distro/include/csl-versions.inc
index f3b491c..3938bf7 100644
--- a/meta/conf/distro/include/csl-versions.inc
+++ b/meta/conf/distro/include/csl-versions.inc
@@ -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]