summaryrefslogtreecommitdiff
path: root/kprobe/Kbuild
blob: 640899fd33f871e52d3a69dfc0a8902715e9050e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
EXTRA_CFLAGS := $(extra_cflags)

obj-m := swap_kprobe.o
swap_kprobe-y := swap_kprobes.o \
                 swap_kprobes_deps.o \
                 swap_slots.o

### ARM
swap_kprobe-$(CONFIG_ARM) += arch/arm/swap-asm/swap_kprobes.o \
                             arch/arm/swap-asm/trampoline_arm.o
ifeq ($(CONFIG_STRICT_MEMORY_RWX), y)
swap_kprobe-$(CONFIG_ARM) += arch/arm/swap-asm/memory_rwx.o
endif #ifeq ($(CONFIG_STRICT_MEMORY_RWX), y)


### X86
swap_kprobe-$(CONFIG_X86) += arch/x86/swap-asm/swap_kprobes.o