mirror of
https://github.com/dynup/kpatch
synced 2024-12-24 22:22:03 +00:00
cd92020f71
Signed-off-by: Seth Jennings <sjenning@redhat.com>
20 lines
508 B
Makefile
20 lines
508 B
Makefile
KPATCH_NAME ?= patch
|
|
KPATCH_BUILD ?= /lib/modules/$(shell uname -r)/build
|
|
KPATCH_MAKE = $(MAKE) -C $(KPATCH_BUILD) M=$(PWD)
|
|
|
|
obj-m += kpatch-$(KPATCH_NAME).o
|
|
|
|
kpatch-$(KPATCH_NAME)-objs += patch-hook.o kpatch.lds output.o
|
|
|
|
all: kpatch-$(KPATCH_NAME).ko
|
|
|
|
kpatch-$(KPATCH_NAME).ko:
|
|
$(KPATCH_MAKE) kpatch-$(KPATCH_NAME).ko
|
|
|
|
patch-hook.o: patch-hook.c kpatch-patch-hook.c livepatch-patch-hook.c
|
|
$(KPATCH_MAKE) patch-hook.o
|
|
|
|
clean:
|
|
$(RM) -Rf .*.o.cmd .*.ko.cmd .tmp_versions *.o *.ko *.mod.c \
|
|
Module.symvers
|