vmtest: omit building bpf_testmod.ko on non-latest kernels

Non-latest kernel versions don't build kernel from sources, so module buliding
fails, despite using `make prepare`. For now, just make sure no module is
built by overwriting bpf_testmod/Makefile.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
This commit is contained in:
Andrii Nakryiko
2020-12-04 13:46:32 -08:00
committed by Andrii Nakryiko
parent 2981bb8d26
commit 46ecf7aef3
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/bash
printf "all:\n\nclean:\n" > bpf_testmod/Makefile
touch bpf_testmod/bpf_testmod.ko

View File

@@ -0,0 +1,4 @@
#!/bin/bash
printf "all:\n\nclean:\n" > bpf_testmod/Makefile
touch bpf_testmod/bpf_testmod.ko