1 ksplice-script
= /usr
/local
/share
/ksplice
/ksplice.pl
3 ifneq ($(KERNELRELEASE
),)
5 CFLAGS_ksplice.o
+= -DKSPLICE_STANDALONE
6 CFLAGS_primary.o
+= -DKSPLICE_STANDALONE
7 CFLAGS_helper.o
+= -DKSPLICE_STANDALONE
10 $(error
"You must set KSPLICE_ID.")
12 CFLAGS_primary.o
+= "-DKSPLICE_ID=$(KSPLICE_ID)"
13 CFLAGS_helper.o
+= "-DKSPLICE_ID=$(KSPLICE_ID)"
16 $(error
"You must set map_printk.")
18 CFLAGS_primary.o
+= "-DMAP_PRINTK=0x$(map_printk)L"
20 KSPLICE
= ksplice-
$(KSPLICE_ID
)
22 obj-m
= $(KSPLICE
)-helper.o
$(KSPLICE
).o
23 $(KSPLICE
)-helper-objs
= helper.o collection.o.helper
24 $(KSPLICE
)-objs
= primary.o ksplice-rmsyms.o collection.o.primary
31 __kernel_text_address \
40 kallsyms_token_table \
43 quiet_cmd_ksplice-rmsyms
= RMSYMS
$@
44 cmd_ksplice-rmsyms
= \
45 $(ksplice-script
) rmsyms
$< $(RMSYMS
); \
46 ld -r
-o
$@
$< $(src
)/ksplice.lds
47 $(obj
)/ksplice-rmsyms.o
: $(obj
)/ksplice.o FORCE
48 $(call if_changed
,ksplice-rmsyms
)
53 $(MAKE
) -C
$(KERNELSRC
) M
=$(CURDIR
) $(MAKECMDGOALS
)
55 .PHONY
: all $(MAKECMDGOALS
)