mirror of
https://github.com/dynup/kpatch
synced 2024-12-13 00:44:34 +00:00
4f27b9ae31
Organize the files functionally: - kmod/core: core kmod source - kmod/patch: patch kmod source - kpatch: kpatch script - kpatch-build: kpatch build script and supporting tools - contrib: distro-related files
15 lines
319 B
Makefile
15 lines
319 B
Makefile
KPATCH_BUILD ?= /usr/lib/modules/$(shell uname -r)/build
|
|
KPATCH_MAKE = $(MAKE) -C $(KPATCH_BUILD) M=$(PWD)
|
|
|
|
obj-m := kpatch.o
|
|
kpatch-y := core.o trampoline.o
|
|
|
|
kpatch.ko: core.c trampoline.S
|
|
$(KPATCH_MAKE) kpatch.ko
|
|
|
|
all: kpatch.ko
|
|
|
|
clean:
|
|
$(RM) -Rf .*.o.cmd .*.ko.cmd .tmp_versions *.o *.ko *.mod.c \
|
|
Module.symvers
|