aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-common.inc
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2013-02-26 15:58:42 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-04 10:08:02 +0000
commitd3eab8b17f8e50f99042a7a8f43db94640c53d41 (patch)
tree1b0b6a7d5247f12dd2d01873d0c93c2c8f184c9a /meta/recipes-devtools/gcc/gcc-common.inc
parent08be60d903ee97859295387b3418d5db85ab16e1 (diff)
downloadopenembedded-core-d3eab8b17f8e50f99042a7a8f43db94640c53d41.tar.gz
gcc-common.inc: handle case where tune is not defined
Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-common.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index ad96989573..6b61800a3e 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