From c66a9770e32837803fdc821b99b5281d9fb95ab1 Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Fri, 18 Dec 2020 12:28:52 -0800 Subject: [PATCH] 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 --- travis-ci/vmtest/prepare_selftests-4.9.0.sh | 3 +-- travis-ci/vmtest/prepare_selftests-5.5.0.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/travis-ci/vmtest/prepare_selftests-4.9.0.sh b/travis-ci/vmtest/prepare_selftests-4.9.0.sh index 9b01fb3..cb55552 100755 --- a/travis-ci/vmtest/prepare_selftests-4.9.0.sh +++ b/travis-ci/vmtest/prepare_selftests-4.9.0.sh @@ -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 diff --git a/travis-ci/vmtest/prepare_selftests-5.5.0.sh b/travis-ci/vmtest/prepare_selftests-5.5.0.sh index 9b01fb3..cb55552 100755 --- a/travis-ci/vmtest/prepare_selftests-5.5.0.sh +++ b/travis-ci/vmtest/prepare_selftests-5.5.0.sh @@ -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