]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: Fix Module.symvers support
authorLili Li <lili.li@intel.com>
Fri, 26 Jun 2020 05:45:56 +0000 (13:45 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Jun 2020 07:24:20 +0000 (08:24 +0100)
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>
meta/classes/kernel.bbclass

index 20a0135fc97963a788a008c452ef3fa7ae8498ff..a1219f3156205bd324cdacd93df073b36e265f0c 100644 (file)
@@ -463,7 +463,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