summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/kernelmodule.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-28 16:49:49 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-15 10:22:44 +0100
commit9e83976054925a49196f4c5be7eb4b4b9cc1e041 (patch)
tree39bafb5cc3ef0fa7f498f24a9bee41fb6bd3841b /meta/lib/oeqa/runtime/cases/kernelmodule.py
parent53d5f01d2dc34ac140f985aef0fbe0c407394a2c (diff)
downloadpoky-9e83976054925a49196f4c5be7eb4b4b9cc1e041.tar.gz
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] (From OE-Core rev: 49b208fc7b3d52826ba57a86ed52bc30e181ff78) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/kernelmodule.py')
-rw-r--r--meta/lib/oeqa/runtime/cases/kernelmodule.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/kernelmodule.py b/meta/lib/oeqa/runtime/cases/kernelmodule.py
index 11ad7b7f01..de1a5aa445 100644
--- a/meta/lib/oeqa/runtime/cases/kernelmodule.py
+++ b/meta/lib/oeqa/runtime/cases/kernelmodule.py
@@ -28,7 +28,7 @@ class KernelModuleTest(OERuntimeTestCase):
28 @OETestDepends(['gcc.GccCompileTest.test_gcc_compile']) 28 @OETestDepends(['gcc.GccCompileTest.test_gcc_compile'])
29 def test_kernel_module(self): 29 def test_kernel_module(self):
30 cmds = [ 30 cmds = [
31 'cd /usr/src/kernel && make scripts', 31 'cd /usr/src/kernel && make scripts prepare',
32 'cd /tmp && make', 32 'cd /tmp && make',
33 'cd /tmp && insmod hellomod.ko', 33 'cd /tmp && insmod hellomod.ko',
34 'lsmod | grep hellomod', 34 'lsmod | grep hellomod',