summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2012-12-12 22:56:38 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-13 16:54:34 +0000
commit6c7f42666345e546834303171b49a95a888e0144 (patch)
tree96028c2e6fdf791dafc922f146efc910e8554c57 /scripts/lib/bsp
parent5fc9990ef66e844012bd026f89d060c36a48209f (diff)
downloadast2050-yocto-poky-6c7f42666345e546834303171b49a95a888e0144.zip
ast2050-yocto-poky-6c7f42666345e546834303171b49a95a888e0144.tar.gz
yocto-kernel: remove assumption that kernel has a version
Kernels don't need to have a PREFERRED_VERSION, so remove that assumption from the code that looks for the kernel definition. (From meta-yocto rev: 2ea9d54ac5ebd80b5306851d62411960f3293ede) Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/bsp')
-rw-r--r--scripts/lib/bsp/kernel.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/bsp/kernel.py b/scripts/lib/bsp/kernel.py
index 272c3eb..f2ec9fd 100644
--- a/scripts/lib/bsp/kernel.py
+++ b/scripts/lib/bsp/kernel.py
@@ -289,6 +289,8 @@ def find_current_kernel(bsp_layer, machine):
if preferred_kernel and preferred_kernel_version:
return preferred_kernel + "_" + preferred_kernel_version
+ elif preferred_kernel:
+ return preferred_kernel
def find_bsp_kernel_src_uri(scripts_path, machine, start_end_only = False):
OpenPOWER on IntegriCloud