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>
This commit is contained in:
Tom Zanussi 2012-12-12 22:56:38 -06:00 committed by Richard Purdie
parent 5fc9990ef6
commit 6c7f426663
1 changed files with 2 additions and 0 deletions

View File

@ -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):