-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (37 loc) · 1.23 KB
/
Copy pathMakefile
File metadata and controls
44 lines (37 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
obj-m := rwmem.o
rwmem-y := src/rwmem_main.o src/rwmem_sc.o lib/rwmem.o \
deps/Kerncall/lib/sc.o deps/Kerncall/lib/sc_slide.o \
deps/hidemod/lib/hidemod.o \
deps/type_info/lib/port.o deps/type_info/lib/slide.o \
deps/type_info/lib/btf.o deps/type_info/lib/query.o \
deps/type_info/lib/reg.o deps/type_info/lib/lib.o \
deps/type_info/lib/anchor.o deps/type_info/lib/dwarf.o \
deps/type_info/kallrecon/lib/core.o \
deps/type_info/kallrecon/lib/anchor.o
ccflags-y += -std=gnu11
ccflags-y += -Wno-declaration-after-statement
ccflags-y += -Wno-unused-variable
ccflags-y += -Wno-unused-function
ccflags-y += -Wno-strict-prototypes
ccflags-y += -DCONFIG_TI_REMAP
ccflags-y += -DCONFIG_KERNSC_PATCH
ccflags-y += -DCONFIG_KERNSC_DISCOVER
ifdef RWMEM_HIDE
ccflags-y += -DCONFIG_RWMEM_HIDE
endif
ifdef RWMEM_MAPS_FINDVMA
ccflags-y += -DCONFIG_RWMEM_MAPS_FINDVMA
endif
ccflags-y += -I$(src)/lib
ccflags-y += -I$(src)/deps/Kerncall/lib
ccflags-y += -I$(src)/deps/hidemod/lib
ccflags-y += -I$(src)/deps/type_info/lib
ccflags-y += -I$(src)/deps/type_info/kallrecon/lib
ifeq ($(KDIR),)
$(error KDIR must be set, e.g. "make KDIR=/path/to/kernel-source")
endif
PWD := $(shell pwd)
all:
make -C $(KDIR) M=$(PWD) modules
clean:
make -C $(KDIR) M=$(PWD) clean