From: Emil Velikov Date: Mon, 2 Sep 2024 17:58:35 +0000 (+0100) Subject: testsuite: use standard make (modules|clean) targets X-Git-Tag: v34~474 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c613e311ed1da8d9370515790c2d75910efb04f5;p=thirdparty%2Fkmod.git testsuite: use standard make (modules|clean) targets Drop the manual (and partial) module cleanup in favour of the clean target. Similarly - explicitly use the modules target for the build. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/86 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/module-playground/Makefile b/testsuite/module-playground/Makefile index 160307cb..c518fd4b 100644 --- a/testsuite/module-playground/Makefile +++ b/testsuite/module-playground/Makefile @@ -52,7 +52,6 @@ else KDIR ?= $(module_prefix)/lib/modules/`uname -r`/build ARCH_SPECIFIC_MODULES := mod-simple-x86_64.ko mod-simple-i386.ko mod-simple-sparc64.ko -MY_MODULES := $(filter-out $(ARCH_SPECIFIC_MODULES),$(wildcard *.ko)) default: modules @@ -61,15 +60,11 @@ mod-simple-%.ko: mod-simple-%.c Makefile.arch $(MAKE) KDIR=$(KDIR_$(arch)) ARCH=$(arch) CROSS_COMPILE=$(CROSS_COMPILE_$(arch)) -f Makefile.arch modules: - $(MAKE) -C $(KDIR) M=$$PWD + $(MAKE) -C $(KDIR) M=$$PWD modules arch-modules: $(ARCH_SPECIFIC_MODULES) clean: - test -z "$(MY_MODULES)" || rm -rf $(MY_MODULES) || true - rm -rf .tmp_versions || true - rm -rf .*.cmd *.mod.c || true - rm -rf *.o || true - rm -rf Module.symvers modules.order + $(MAKE) -C $(KDIR) M=$$PWD clean endif