From c3ac269a8a7334804557e2a6697381cea26c2651 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Wed, 12 Oct 2022 10:59:10 +0100 Subject: [PATCH] lisa._kmod: Explicitly pass module/kernel path when building module FEATURE Pass path to module and kernel path instead of relying on Kbuild's $(src) and $(srctree) variables, as they seem to be broken on some android's kernel. --- lisa/_kmod.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisa/_kmod.py b/lisa/_kmod.py index 85e8bcc1d..7c767dd5a 100644 --- a/lisa/_kmod.py +++ b/lisa/_kmod.py @@ -1581,6 +1581,9 @@ class KmodSrc(Loggable): make_vars.update( M=mod_path, LISA_KMOD_NAME=self.mod_name, + KERNEL_SRC=tree_path, + MODULE_SRC=mod_path, + MODULE_OBJ=mod_path, ) make_vars = [ f'{name}={value}' -- GitLab