summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorBeniamin Sandu <beniaminsandu@gmail.com>2019-04-11 10:28:54 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-12 09:29:06 +0100
commit59fcee90de0cbb5b6b8333ab2b0e36214b174e52 (patch)
treea967fdb8deacb38ea4cda67f7fca490dc0c0ddc7 /meta
parentdcfef9fef02f7d122a21c9df47c906fdf1ca0097 (diff)
downloadpoky-59fcee90de0cbb5b6b8333ab2b0e36214b174e52.tar.gz
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@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@qemux86:~# insmod hello.ko [ 39.094288] hello: loading out-of-tree module taints kernel. [ 39.108044] Hello World! (From OE-Core rev: 68b9243729ac1982c9f1d30980cf979267bbc7c3) Signed-off-by: Beniamin Sandu <beniamin.sandu@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-kernel/linux/kernel-devsrc.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index 69a8eaef81..5ec5929735 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -228,6 +228,9 @@ do_install() {
228 228
229 # required to build scripts/selinux/genheaders/genheaders 229 # required to build scripts/selinux/genheaders/genheaders
230 cp -a --parents security/selinux/include/* $kerneldir/build/ 230 cp -a --parents security/selinux/include/* $kerneldir/build/
231
232 # copy any localversion files
233 cp -a localversion* $kerneldir/build/ 2>/dev/null || :
231 ) 234 )
232 235
233 # Make sure the Makefile and version.h have a matching timestamp so that 236 # Make sure the Makefile and version.h have a matching timestamp so that