diff options
author | Lili Li <lili.li@intel.com> | 2020-06-26 13:45:56 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-07-08 10:47:50 +0100 |
commit | f8fcc057d51bd320893b8c3311f1b460b1c297ce (patch) | |
tree | 4488f5669627fbdd2edb1507a252366d083d801c /meta | |
parent | 42fd2f8e4dcd1327956c3693a0f3c242d9504769 (diff) | |
download | poky-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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel.bbclass | 2 |
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 () { | |||
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 |