]> code.ossystems Code Review - openembedded-core.git/commit
make-mod-scripts/kernel-devsrc: Fix objtool issues
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 Jul 2018 08:49:49 +0000 (16:49 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Aug 2018 09:22:26 +0000 (10:22 +0100)
commit49b208fc7b3d52826ba57a86ed52bc30e181ff78
treec627188c8941f81cb60e0ca6667ca8a81e607f8f
parent4f528a93352c6301d57a9aaeb082d0cc313d91c3
make-mod-scripts/kernel-devsrc: Fix objtool issues

Kernels which use tools/objtool can now fail when building external modules
due to objtool being missing, the generated files can also cause problems
for kernel-devsrc.

Ensure objtool is generated in make-mod-scripts by also calling
"make prepare".

For devsrc, delete the generated binaries since they'd be native
binaries and unsuitable for the target.

The oeqa kernel module tests also need to have the additional "make prepare"
step added.

(From OE-Core rev: 52fd2993784b4218f5df4f343e7da45d964df305)

Fixes [YOCTO #12860]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
[Tweaked to add "make prepare" to module-base.bbclass instead of
make-mod-scripts.bb]
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/module-base.bbclass
meta/lib/oeqa/runtime/cases/kernelmodule.py
meta/recipes-kernel/linux/kernel-devsrc.bb