mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
5084807828
commit
8e105385e0
@@ -38,7 +38,7 @@ def get_gcc_multiarch_setting(bb, d):
|
|||||||
def get_tune_parameters(tune, d):
|
def get_tune_parameters(tune, d):
|
||||||
availtunes = d.getVar('AVAILTUNES', True)
|
availtunes = d.getVar('AVAILTUNES', True)
|
||||||
if tune not in availtunes.split():
|
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)
|
localdata = bb.data.createCopy(d)
|
||||||
override = ':tune-' + tune
|
override = ':tune-' + tune
|
||||||
|
|||||||
Reference in New Issue
Block a user