vmtests: fix up bpf_testmod.ko generation for 5.5 and 4.9

Selftests makefile deletes local bpf_testmod.ko, so that invalidates current
approach of faking bpf_testmod.ko "generation". Instead, generate a fake
Makefile that will create an empty bpf_testmod/bpf_testmod.ko.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
This commit is contained in:
Andrii Nakryiko
2020-12-18 12:28:52 -08:00
committed by Andrii Nakryiko
parent 8262be6034
commit c66a9770e3
2 changed files with 2 additions and 4 deletions

View File

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

View File

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