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:33 +0100 |
commit | 7849e50107a27b0ff2aaac47480ac1a0a79533dc (patch) | |
tree | 0b6d05346d14e7508c1c2de799bef51032f849cf /meta/classes/kernel.bbclass | |
parent | add84a15023d6c277340d6ab4810c605fab01e00 (diff) | |
download | openembedded-core-7849e50107a27b0ff2aaac47480ac1a0a79533dc.tar.gz openembedded-core-7849e50107a27b0ff2aaac47480ac1a0a79533dc.tar.bz2 openembedded-core-7849e50107a27b0ff2aaac47480ac1a0a79533dc.zip |
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.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 4f57770157..b02036f9c5 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 |