From: Matthew McClintock Date: Tue, 26 Feb 2013 21:58:42 +0000 (-0600) Subject: gcc-common.inc: handle case where tune is not defined X-Git-Tag: 2015-4~7364 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=d3eab8b17f8e50f99042a7a8f43db94640c53d41;p=openembedded-core.git gcc-common.inc: handle case where tune is not defined Signed-off-by: Matthew McClintock Signed-off-by: Richard Purdie --- 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