]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-common.inc: handle case where tune is not defined
authorMatthew McClintock <msm@freescale.com>
Tue, 26 Feb 2013 21:58:42 +0000 (15:58 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Mar 2013 10:08:02 +0000 (10:08 +0000)
Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-common.inc

index ad969895731509815410503f0fd5686762f175c8..6b61800a3ed33b7ecb9ae578b7c255b62a3c4711 100644 (file)
@@ -38,7 +38,7 @@ def get_gcc_multiarch_setting(bb, d):
 def get_tune_parameters(tune, d):
     availtunes = d.getVar('AVAILTUNES', True)
     if tune not in availtunes.split():
-        bb.error('The tune: %s is not one of the available tunes: %s', tune, availtunes)
+        bb.error('The tune: %s is not one of the available tunes: %s', tune or None, availtunes)
 
     localdata = bb.data.createCopy(d)
     override = ':tune-' + tune