rootfs.py: strip kernel-abiversion useless readline
It failed to read Kernel version from kernel-abiversion file, the reason was it didn't strip the readline. ... Error: Kernel version 3.10.25-yocto-standard does not match kernel-abiversion (3.10.25-yocto-standard) ... (From OE-Core rev: 17a0a8f44fe344ab1ae49730d9f17705b43987e5) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a49d9f8fc5
commit
3bc7a4f814
|
@ -193,7 +193,7 @@ class Rootfs(object):
|
|||
kernel_abi_ver_file = os.path.join(self.d.getVar('STAGING_KERNEL_DIR', True),
|
||||
'kernel-abiversion')
|
||||
if os.path.exists(kernel_abi_ver_file):
|
||||
kernel_ver = open(kernel_abi_ver_file).read()
|
||||
kernel_ver = open(kernel_abi_ver_file).read().strip(' \n')
|
||||
modules_dir = os.path.join(self.image_rootfs, 'lib', 'modules', kernel_ver)
|
||||
|
||||
bb.utils.mkdirhier(modules_dir)
|
||||
|
|
Loading…
Reference in New Issue