Commit b9b60fb
kselftest: pass KDIR to enable out-of-tree module builds
Some kselftest suites (e.g. livepatch) include kernel modules built via
TEST_GEN_MODS_DIR. The test_modules Makefile defaults KDIR to the host
kernel build directory, which does not exist during cross-compilation.
This causes the module build to be silently skipped, and the subsequent
install step fails when rsync cannot find any .ko files.
Pass KDIR={build_dir} so that test modules are built against the kernel
being compiled.
Signed-off-by: Ben Copeland <ben.copeland@linaro.org>1 parent 5e04e16 commit b9b60fb
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
216 | 221 | | |
217 | 222 | | |
218 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
0 commit comments