diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2015-02-24 01:48:48 -0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2015-02-24 01:48:48 -0300 |
commit | 10d783c4a74eb1bd4d812b1bbdda083703221f18 (patch) | |
tree | 061e49437da929fe1f82197a4eb683212d7d9971 /testsuite | |
parent | 0af8f786c0bae8c10d9b463d72e72cc6e80c26a2 (diff) | |
download | kmod-10d783c4a74eb1bd4d812b1bbdda083703221f18.tar.gz kmod-10d783c4a74eb1bd4d812b1bbdda083703221f18.tar.bz2 kmod-10d783c4a74eb1bd4d812b1bbdda083703221f18.zip |
module-playground: don clean all .ko files
Rather than calling kernel's make for clean target, do it by ourselves.
This way we can preserve some prebuilt modules.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/module-playground/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/testsuite/module-playground/Makefile b/testsuite/module-playground/Makefile index 6d84523..5ba9ed2 100644 --- a/testsuite/module-playground/Makefile +++ b/testsuite/module-playground/Makefile @@ -40,6 +40,7 @@ KDIR ?= /lib/modules/`uname -r`/build KVER ?= `uname -r` 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 arch-modules @@ -53,9 +54,10 @@ modules: arch-modules: $(ARCH_SPECIFIC_MODULES) clean: - $(MAKE) -C $(KDIR) M=$$PWD clean - $(MAKE) KDIR=$(KDIR_x86_64) ARCH=x86_64 CROSS_COMPILE=$(CROSS_COMPILE_x86_64) -f Makefile.arch clean - $(MAKE) KDIR=$(KDIR_i386) ARCH=i386 CROSS_COMPILE=$(CROSS_COMPILE_i386) -f Makefile.arch clean - $(MAKE) KDIR=$(KDIR_sparc64) ARCH=sparc64 CROSS_COMPILE=$(CROSS_COMPILE_sparc64) -f Makefile.arch 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 endif |