]> code.ossystems Code Review - openembedded-core.git/commit
kernel: relocate copy of module.lds to module compilation task
authorBruce Ashfield <bruce.ashfield@gmail.com>
Wed, 18 Nov 2020 04:56:33 +0000 (23:56 -0500)
committerSteve Sakoman <steve@sakoman.com>
Mon, 30 Nov 2020 14:58:17 +0000 (04:58 -1000)
commit38c6c6f4a460e9c0593e2530ffeaf20b24fd83a9
tree33f30133d2759c1911a01b3f5570b873489e2964
parent46bc7719ea5ddf4342921c1b2721c73c1a3694a6
kernel: relocate copy of module.lds to module compilation task

There were two copies of this patch floating around, and the merged
variant has the copy in the wrong place.

module.lds is only created during modules_prepare, and that target is
not invoked during our main build of the kernel. We aren't about to
change the kernel build (there's no need), so we move the copy into
the compile_kernelmodules task. After that runs, we have module.lds
availble to copy.

This has been tested against clean kernel + out of tree module
builds, and the dependencies are correct that the file is copied
before the out of tree module build starts.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7d94f9209ebaaf59ea001239a889dd7f928a0e7c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/kernel.bbclass