]> git.ipfire.org Git - thirdparty/kmod.git/commit
build: Fix KDIR again
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 11 Sep 2024 13:51:23 +0000 (08:51 -0500)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 11 Sep 2024 19:39:10 +0000 (14:39 -0500)
commitaa9f6d89e7e226abc79978d5e7f69e27501bad45
tree8827649018499152f5cf67675d19dc9ab76bcbcf
parent9bc8dfb173a5ef503654bb840514d05960eec7fb
build: Fix KDIR again

KDIR is not related to the what we configure in kmod's build. It's only
used in kmod to locate where the distro's kernel source/headers is,
which may be different from what we are configuring the (under
development) kmod with.

Remove the setting from meson/autotools and figure it out inside the
module-playground Makefile what should be used. For advanced use cases,
KDIR= can be passed to override the location.

For our own tests, which includes testing with a different module_directory,
scripts/setup-rootfs.sh will copy the module to the desired location
according to the map defined in the script.

Fixes: 27ff72732666 ("testsuite: correct the default KDIR")
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/125
Makefile.am
scripts/setup-modules.sh
testsuite/meson.build
testsuite/module-playground/Makefile