diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-08-22 01:43:19 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-23 23:01:57 +0100 |
commit | eb34d6650b14332f2312ab15c8c02bfaadda222c (patch) | |
tree | 8ee8ff008d780e355f6d76d49c15b45ac492aafe /meta | |
parent | dfb55758d21145621546ac2ae49f4892f974f246 (diff) | |
download | ast2050-yocto-poky-eb34d6650b14332f2312ab15c8c02bfaadda222c.zip ast2050-yocto-poky-eb34d6650b14332f2312ab15c8c02bfaadda222c.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/sanity.bbclass | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 4f57770..b02036f 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -12,7 +12,7 @@ INITRAMFS_TASK ?= "" INITRAMFS_IMAGE_BUNDLE ?= "" python __anonymous () { - kerneltype = d.getVar('KERNEL_IMAGETYPE', True) or '' + kerneltype = d.getVar('KERNEL_IMAGETYPE', True) if kerneltype == 'uImage': depends = d.getVar("DEPENDS", True) depends = "%s u-boot-mkimage-native" % depends diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index b5fab6a..3b40ebe 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -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') |