Red Hat Bugzilla – Bug 38460
RFE: rhconfig.h should check value of defined symbols
Last modified: 2007-04-18 12:32:55 EDT
It would be extremely nice if rhconfig.h checked (eg)
if defined(__MODULE_KERNEL_i686) && (__MODULE_KERNEL_i686 == 1)
as opposed to the current check of just the symbol being defined. This
would allow you to override the architecture for which modules are built
for and distribute kernel modules in packages outside of the kernel and get
the proper module symbols for things such as OpenAFS. Otherwise, it
requires replacing /boot/kernel.h right now which means you can't do the
package build as non-root.
Actually, I guess to avoid requiring a new initscripts, it would be better
if defined(__MODULE_KERNEL_i686) && (__MODULE_KERNEL_i686 != 0)
Could you check Doug's driverdisk kit ?
He seems to have a solution for this.
I checked out the referenced package. What is done there is basically
building a completely new kernel source platform and linking their
driver sources into it. A better way of explaining the module drivers
package is that it is a subset of a complete kernel tree. It does not
attempt to compile against an existing kernel source (header) tree. Rather,
it extracts the kernel source tree and prunes all but the drivers sources
and then builds with the standard kernel configs.
They workaround this particular bug by ignoring it and not trying to build
against kernel-source header files.
Current kernel setups seem to let you do that just fine.