diff options
author | Matthew McClintock <msm@freescale.com> | 2013-02-26 15:58:42 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-05 13:14:51 +0000 |
commit | 8e105385e0ba85bd2d09561b1dde5a53de3a0746 (patch) | |
tree | b2a7b70bfcd40bde1699c7c951e294bc119c5a6e /meta/recipes-devtools | |
parent | 508480782812a99d2cbfff4e9c4ceb5edf649662 (diff) | |
download | poky-8e105385e0ba85bd2d09561b1dde5a53de3a0746.tar.gz |
gcc-common.inc: handle case where tune is not defined
(From OE-Core rev: d3eab8b17f8e50f99042a7a8f43db94640c53d41)
Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | 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 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): | |||
38 | def get_tune_parameters(tune, d): | 38 | def get_tune_parameters(tune, d): |
39 | availtunes = d.getVar('AVAILTUNES', True) | 39 | availtunes = d.getVar('AVAILTUNES', True) |
40 | if tune not in availtunes.split(): | 40 | if tune not in availtunes.split(): |
41 | bb.error('The tune: %s is not one of the available tunes: %s', tune, availtunes) | 41 | bb.error('The tune: %s is not one of the available tunes: %s', tune or None, availtunes) |
42 | 42 | ||
43 | localdata = bb.data.createCopy(d) | 43 | localdata = bb.data.createCopy(d) |
44 | override = ':tune-' + tune | 44 | override = ':tune-' + tune |