]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
classes/kernel: remove path assumptions in compile_kernelmodules
authorRoss Burton <ross.burton@intel.com>
Mon, 13 Jun 2016 23:14:06 +0000 (00:14 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Jun 2016 17:10:10 +0000 (18:10 +0100)
do_compile_kernelmodules was assuming that the current directory was ${B} but
didn't make that explicit, so use an absolute path to ensure this always works.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index dcf8bae0427ef980ad3874bd3d57cc7c5c623105..59bbbe8ad53a7163efcfe053fbc37a1b4e95fcdd 100644 (file)
@@ -291,7 +291,7 @@ do_compile_kernelmodules() {
                # external kernel modules has a dependency on
                # other kernel modules and will look at this
                # file to do symbol lookups
-               cp Module.symvers ${STAGING_KERNEL_BUILDDIR}/
+               cp ${B}/Module.symvers ${STAGING_KERNEL_BUILDDIR}/
        else
                bbnote "no modules to compile"
        fi
@@ -598,4 +598,3 @@ do_deploy[prefuncs] += "package_get_auto_pr"
 addtask deploy after do_populate_sysroot
 
 EXPORT_FUNCTIONS do_deploy
-