Patchwork [2/4] gcc-common.inc: handle case where tune is not defined

login
register
mail settings
Submitter Matthew McClintock
Date Feb. 26, 2013, 9:58 p.m.
Message ID <1361915924-23046-2-git-send-email-msm@freescale.com>
Download mbox | patch
Permalink /patch/45171/
State Accepted
Commit d3eab8b17f8e50f99042a7a8f43db94640c53d41
Headers show

Comments

Matthew McClintock - Feb. 26, 2013, 9:58 p.m.
Signed-off-by: Matthew McClintock <msm@freescale.com>
---
 meta/recipes-devtools/gcc/gcc-common.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index ad96989..6b61800 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -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