kernel headers not properly generated on platforms with a mach- and a plat- (i.e. mach-mx5, plat-mxc etc.)

Russell King - ARM Linux linux at arm.linux.org.uk
Sat Jan 29 10:29:54 EST 2011


On Sat, Jan 29, 2011 at 08:57:54AM -0600, Matt Sealey wrote:
> Okay so it's a Debian packaging problem then. To get dkms and similar
> to work properly with just -headers there are a bunch of hacks (it
> installs a pre-prepped kernel tree up to the point it's needed to get
> that to work) and this would have to be handled.

What Fedora does is the kernel-headers package contains the userspace
headers (/usr/include/{asm,linux,...}) which correspond with the headers
which were used to build glibc.

The kernel package, containing the kernel binary and modules, contains
a link from /lib/modules/$version/build to the kernel development tree
in /usr/src/kernels/$version

The kernel-devel package contains a cut-down kernel tree, including the
Kconfigs, Makefiles, include files, scripts (and pre-built binaries
in scripts/) and a .config - in other words, a prepared kernel source
tree with most of the .c files missing.

I'm not sure what debian do, but they should be doing something similar.
They should not be stuffing the userspace headers package with any header
file which isn't exported by 'make headers_install'.

Hope that's of some use.



More information about the linux-arm-kernel mailing list