]> git.ipfire.org Git - thirdparty/kmod.git/blobdiff - testsuite/module-playground/Makefile
testsuite: beef up module-playground in the build system
[thirdparty/kmod.git] / testsuite / module-playground / Makefile
index f606823c5d73b72869c5ecdbbe669618d21fd048..b8b465a62795cf0d019a550d9deab2936204b361 100644 (file)
@@ -1,22 +1,14 @@
 ifneq ($(KERNELRELEASE),)
 # kbuild part of makefile
-obj-m := moduleA.o moduleB.o moduleC.o
+obj-m := mod-simple.o
 else
 # normal makefile
 KDIR ?= /lib/modules/`uname -r`/build
 KVER ?= `uname -r`
-TESTDIR_BASE := /tmp/test-kmod
-TESTDIR := $(TESTDIR_BASE)/lib/modules/$(KVER)/
 
 default:
        $(MAKE) -C $(KDIR) M=$$PWD
 
-install: default
-       mkdir -p $(TESTDIR)/kernel/
-       cp *.ko $(TESTDIR)/kernel/
-       cp modules.order $(TESTDIR)
-       depmod -a -b $(TESTDIR_BASE) $(KVER)
-
 clean:
        $(MAKE) -C $(KDIR) M=$$PWD clean