[oe-commits] Matthew McClintock : gcc-common.inc: handle case where tune is not defined
git at git.openembedded.org
git at git.openembedded.org
Sun Mar 3 12:00:39 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: f3be5c20370fba0223ac1c358469fbc13b314b2c
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=f3be5c20370fba0223ac1c358469fbc13b314b2c
Author: Matthew McClintock <msm at freescale.com>
Date: Tue Feb 26 15:58:42 2013 -0600
gcc-common.inc: handle case where tune is not defined
Signed-off-by: Matthew McClintock <msm at freescale.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-devtools/gcc/gcc-common.inc | 2 +-
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 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
More information about the Openembedded-commits
mailing list