From patchwork Tue Feb 26 21:58:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/4] gcc-common.inc: handle case where tune is not defined Date: Tue, 26 Feb 2013 21:58:42 -0000 From: Matthew McClintock X-Patchwork-Id: 45171 Message-Id: <1361915924-23046-2-git-send-email-msm@freescale.com> To: Signed-off-by: Matthew McClintock --- meta/recipes-devtools/gcc/gcc-common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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