summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLili Li <lili.li@intel.com>2020-06-26 13:45:56 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2020-06-29 13:51:06 +0800
commit03248953d1eacede00971289dc9fff8d97d00464 (patch)
tree244a3ead1a8aa5e60edb59072a4e15d6e8b92792
parent12dceaba5a7e3afed2ccb43d0788e5b95c602951 (diff)
downloadopenembedded-core-contrib-03248953d1eacede00971289dc9fff8d97d00464.tar.gz
openembedded-core-contrib-03248953d1eacede00971289dc9fff8d97d00464.tar.bz2
openembedded-core-contrib-03248953d1eacede00971289dc9fff8d97d00464.zip
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. 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>
-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 750988f4e5..9ace74564c 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -452,7 +452,7 @@ do_shared_workdir () {
# Copy files required for module builds
cp System.map $kerneldir/System.map-${KERNEL_VERSION}
- cp Module.symvers $kerneldir/
+ [ -e Module.symvers ] && cp Module.symvers $kerneldir/
cp .config $kerneldir/
mkdir -p $kerneldir/include/config
cp include/config/kernel.release $kerneldir/include/config/kernel.release