mirror of
https://github.com/dynup/kpatch
synced 2024-12-23 05:32:13 +00:00
3b489e7d29
When CONFIG_MODVERSIONS is enabled, loading of the patch module fails with "no symbol version for kpatch_register". When building the patch module, we need to point it to the core module's Module.symvers file. This also works when CONFIG_MODVERSIONS is disabled, since Module.symvers is created regardless.
19 lines
441 B
Makefile
19 lines
441 B
Makefile
include ../Makefile.inc
|
|
|
|
all: clean
|
|
$(MAKE) -C core
|
|
|
|
install:
|
|
$(INSTALL) -d $(MODULESDIR)/$(shell uname -r)/kpatch
|
|
$(INSTALL) -m 644 core/kpatch.ko $(MODULESDIR)/$(shell uname -r)/kpatch
|
|
$(INSTALL) -m 644 core/Module.symvers $(MODULESDIR)/$(shell uname -r)/kpatch
|
|
$(INSTALL) -d $(DATADIR)/patch
|
|
$(INSTALL) -m 644 patch/* $(DATADIR)/patch
|
|
|
|
uninstall:
|
|
$(RM) -R $(MODULESDIR)/*/kpatch
|
|
$(RM) -R $(DATADIR)
|
|
|
|
clean:
|
|
$(MAKE) -C core clean
|