[oe-commits] [openembedded-core] 54/56: kernel-devsrc: check for localversion files in the kernel source tree

git at git.openembedded.org git at git.openembedded.org
Wed Apr 10 23:12:18 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 12608116c135d4106b8a3bc77e947f24652d6835
Author: Beniamin Sandu <beniaminsandu at gmail.com>
AuthorDate: Thu Apr 11 01:55:24 2019 +0300

    kernel-devsrc: check for localversion files in the kernel source tree
    
    The kernel-devsrc rework doesn't take into account localversion
    files in the kernel source tree. This might result in modules with an
    incomplete version magic when building out-of-tree using the SDK.
    
    Before:
    root at qemux86:~# insmod hello.ko
    [   42.000212] hello: version magic '5.0.3-yocto-standard SMP preempt
    mod_unload PENTIUMM ' should be '5.0.3-my-custom-release-yocto-standard
    SMP preempt mod_unload PENTIUMM '
    [   42.008200] hello: version magic '5.0.3-yocto-standard SMP preempt
    mod_unload PENTIUMM ' should be '5.0.3-my-custom-release-yocto-standard
    SMP preempt mod_unload PENTIUMM '
    insmod: can't insert 'hello.ko': invalid module format
    
    After:
    root at qemux86:~# insmod hello.ko
    [   39.094288] hello: loading out-of-tree module taints kernel.
    [   39.108044] Hello World!
    
    Signed-off-by: Beniamin Sandu <beniamin.sandu at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-kernel/linux/kernel-devsrc.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index 69a8eae..ed265f7 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -228,6 +228,11 @@ do_install() {
 
         # required to build scripts/selinux/genheaders/genheaders
         cp -a --parents security/selinux/include/* $kerneldir/build/
+
+	# check for any localversion files
+	if [ -f localversion* ]; then
+	   cp localversion* $kerneldir/build/
+	fi
     )
 
     # Make sure the Makefile and version.h have a matching timestamp so that

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list