summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorLili Li <lili.li@intel.com>2020-06-26 13:45:56 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-28 08:35:59 +0100
commit05043a26cc297ed9834055678ac699e20e2f16d5 (patch)
tree8055c8dabe3f38fb5785c9aecbd79983eba8710a /meta/classes
parent3125cfe84a2c00cdae16d7276beae8ec5bf876c5 (diff)
downloadpoky-05043a26cc297ed9834055678ac699e20e2f16d5.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: cd2d62a08a1dfcd890a03ee55132b6d6c65f5ab7) Signed-off-by: Lili Li <lili.li@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 20a0135fc9..a1219f3156 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -463,7 +463,7 @@ do_shared_workdir () {
463 463
464 # Copy files required for module builds 464 # Copy files required for module builds
465 cp System.map $kerneldir/System.map-${KERNEL_VERSION} 465 cp System.map $kerneldir/System.map-${KERNEL_VERSION}
466 cp Module.symvers $kerneldir/ 466 [ -e Module.symvers ] && cp Module.symvers $kerneldir/
467 cp .config $kerneldir/ 467 cp .config $kerneldir/
468 mkdir -p $kerneldir/include/config 468 mkdir -p $kerneldir/include/config
469 cp include/config/kernel.release $kerneldir/include/config/kernel.release 469 cp include/config/kernel.release $kerneldir/include/config/kernel.release