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 authored and Andrii Nakryiko committed 2020-12-20 17:00:58 -08:00
1 parent 8262be6034
commit c66a9770e3
2 files changed
+2 -4

No files matched your search

+1 -2
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
+1 -2
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