modversion.h in kernel 2.6.x
Hello,
Could anyone tell me what happened with modversion.h in 2.6.x? I want to build a module whose makefile indicates that,
ifdef CONFIG_MODVERSIONS
MODVERSIONS:= -DMODVERSIONS -include
$(KERNEL_DIR)/include/linux/modversions.h
CKERNOPS += $(MODVERSIONS)
endif
I checked .config in source tree and yes, CONFIG_MODVERSIONS is defined as 'y'. But there is just no modversions.h in /include/linux :( Also, I don't think it is in kernel version 2.4.x.
What the hack is modversions.h?
Thanks!
Lei
Quoted 4 lines · Lei Yang
Hello,
Could anyone tell me what happened with
modversion.hin 2.6.x? I want to build a module whose makefile indicates that,
this module has a broken makefile for 2.6 .....
it really should use the kbuild infrastructure instead.
Quoted 10 lines · Lei Yang
Hello,
Could anyone tell me what happened with
modversion.hin 2.6.x? I want to build a module whose makefile indicates that,ifdef
CONFIG_MODVERSIONS
MODVERSIONS:= -DMODVERSIONS -include
$(KERNEL_DIR)/include/linux/modversions.h
CKERNOPS += $(MODVERSIONS)
endif
This is a sign of a broken module.
Request the author to use the kbuild infrastructure when building the module. See Documentation/kbuild/modules.txt and Driver porting series at lwn.net for good examples.
If you do not need CONFIG_MODVERSION then try to disable it and compile the module, you may be lucky that it works.
But be carefull not to enable any options that may change ABI, for example reg-parm=3 is know to cause problems if not used consistently.
Sam