mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
sanity.bbclass/kernel.bbclass: minor fixes
Fixed: - Remove an unused line - Remove unneeded code after d.getVar(), we don't need the "or ''" after d.getVar() unless we need a string. - typo: PREMIRROS -> PREMIRRORS. (From OE-Core rev: 7849e50107a27b0ff2aaac47480ac1a0a79533dc) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
dfb55758d2
commit
eb34d6650b
@@ -150,10 +150,9 @@ def check_toolchain_tune(data, tune, multilib):
|
||||
bb.debug(2, " %s: %s" % (feature, valid_tunes[feature]))
|
||||
else:
|
||||
tune_errors.append("Feature '%s' is not defined." % feature)
|
||||
whitelist = localdata.getVar("TUNEABI_WHITELIST", True) or ''
|
||||
override = localdata.getVar("TUNEABI_OVERRIDE", True) or ''
|
||||
whitelist = localdata.getVar("TUNEABI_WHITELIST", True)
|
||||
if whitelist:
|
||||
tuneabi = localdata.getVar("TUNEABI_tune-%s" % tune, True) or ''
|
||||
tuneabi = localdata.getVar("TUNEABI_tune-%s" % tune, True)
|
||||
if not tuneabi:
|
||||
tuneabi = tune
|
||||
if True not in [x in whitelist.split() for x in tuneabi.split()]:
|
||||
@@ -265,7 +264,7 @@ def check_connectivity(d):
|
||||
# CONNECTIVITY_CHECK_URIS are set
|
||||
network_enabled = not d.getVar('BB_NO_NETWORK', True)
|
||||
check_enabled = len(test_uris)
|
||||
# Take a copy of the data store and unset MIRRORS and PREMIRROS
|
||||
# Take a copy of the data store and unset MIRRORS and PREMIRRORS
|
||||
data = bb.data.createCopy(d)
|
||||
data.delVar('PREMIRRORS')
|
||||
data.delVar('MIRRORS')
|
||||
|
||||
Reference in New Issue
Block a user