summaryrefslogtreecommitdiff
path: root/meta/lib/oe/rootfs.py
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2014-01-26 18:14:17 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-11 11:50:28 +0000
commit17a0a8f44fe344ab1ae49730d9f17705b43987e5 (patch)
tree109a94262959b20822da98fb922b451bc9d0ed00 /meta/lib/oe/rootfs.py
parent9cdecb3935962653733705ad6313558bfd4fda29 (diff)
downloadopenembedded-core-17a0a8f44fe344ab1ae49730d9f17705b43987e5.tar.gz
openembedded-core-17a0a8f44fe344ab1ae49730d9f17705b43987e5.tar.bz2
openembedded-core-17a0a8f44fe344ab1ae49730d9f17705b43987e5.zip
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) ... Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-rw-r--r--meta/lib/oe/rootfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index e884e47733..c149c94271 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -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)