xref: /linux/tools/testing/selftests/livepatch/test_modules/Makefile (revision c4bbe83d27c2446a033cc0381c3fb6be5e8c41c7)
1*c4bbe83dSMarcos Paulo de SouzaTESTMODS_DIR := $(realpath $(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
2*c4bbe83dSMarcos Paulo de SouzaKDIR ?= /lib/modules/$(shell uname -r)/build
3*c4bbe83dSMarcos Paulo de Souza
4*c4bbe83dSMarcos Paulo de Souzaobj-m += test_klp_atomic_replace.o \
5*c4bbe83dSMarcos Paulo de Souza	test_klp_callbacks_busy.o \
6*c4bbe83dSMarcos Paulo de Souza	test_klp_callbacks_demo.o \
7*c4bbe83dSMarcos Paulo de Souza	test_klp_callbacks_demo2.o \
8*c4bbe83dSMarcos Paulo de Souza	test_klp_callbacks_mod.o \
9*c4bbe83dSMarcos Paulo de Souza	test_klp_livepatch.o \
10*c4bbe83dSMarcos Paulo de Souza	test_klp_state.o \
11*c4bbe83dSMarcos Paulo de Souza	test_klp_state2.o \
12*c4bbe83dSMarcos Paulo de Souza	test_klp_state3.o \
13*c4bbe83dSMarcos Paulo de Souza	test_klp_shadow_vars.o
14*c4bbe83dSMarcos Paulo de Souza
15*c4bbe83dSMarcos Paulo de Souzamodules:
16*c4bbe83dSMarcos Paulo de Souza	$(Q)$(MAKE) -C $(KDIR) modules KBUILD_EXTMOD=$(TESTMODS_DIR)
17*c4bbe83dSMarcos Paulo de Souza
18*c4bbe83dSMarcos Paulo de Souzaclean:
19*c4bbe83dSMarcos Paulo de Souza	$(Q)$(MAKE) -C $(KDIR) clean KBUILD_EXTMOD=$(TESTMODS_DIR)
20