summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLili Li <lili.li@intel.com>2020-06-26 05:45:56 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-08 09:47:50 (GMT)
commitf8fcc057d51bd320893b8c3311f1b460b1c297ce (patch)
tree4488f5669627fbdd2edb1507a252366d083d801c
parent42fd2f8e4dcd1327956c3693a0f3c242d9504769 (diff)
downloadpoky-f8fcc057d51bd320893b8c3311f1b460b1c297ce.tar.gz
kernel.bbclass: Fix Module.symvers support
Starting from v5.8-rc1 commit 269a535ca931 (modpost: generate vmlinux.symvers and reuse it for the second modpost"), kernel will generate new vmlinux.symvers instead of dumping all the vmlinux symbols into Module.symvers in the first pass. Error log: 'run.do_shared_workdir.16614' failed with exit code 1: DEBUG: cp: cannot stat 'Module.symvers': No such file or directory This change will check the file Module.symvers existence before copying it. (From OE-Core rev: 03248953d1eacede00971289dc9fff8d97d00464) Signed-off-by: Lili Li <lili.li@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit cd2d62a08a1dfcd890a03ee55132b6d6c65f5ab7) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 750988f..9ace745 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -452,7 +452,7 @@ do_shared_workdir () {
452 452
453 # Copy files required for module builds 453 # Copy files required for module builds
454 cp System.map $kerneldir/System.map-${KERNEL_VERSION} 454 cp System.map $kerneldir/System.map-${KERNEL_VERSION}
455 cp Module.symvers $kerneldir/ 455 [ -e Module.symvers ] && cp Module.symvers $kerneldir/
456 cp .config $kerneldir/ 456 cp .config $kerneldir/
457 mkdir -p $kerneldir/include/config 457 mkdir -p $kerneldir/include/config
458 cp include/config/kernel.release $kerneldir/include/config/kernel.release 458 cp include/config/kernel.release $kerneldir/include/config/kernel.release