[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

building kernel and pcmcia with --flavour ("-flavour" vs. "+flavour)



I'm trying to build my own 2.2.19 kernel, and associated PCMCIA
modules on a Woody Intel system, using the --flavour argument to
make-kpkg to separate it from the normal debian kernels.

Does anyone know what I need to do to make pcmcia-modules put its own
modules in the same place as the kernel when a --flavour argument is
used? 

My problem is that the PCMCIA modules install in
	/lib/modules/2.2.19+biaggi/
while the kernel installs its other modules, and looks for them, and
the PCMCIA modules in
	/lib/modules/2.2.19-biaggi/

I have installed kernel-source-2.2.19 and pcmcia-source.

I have unpacked 
	/usr/src/kernel-source-2.2.19.tar.bz2
into
	/usr/src/kernel-source-2.2.19/
and symlinked 
	/usr/src/linux
to this directory.

I have unpacked
	/usr/src/pcmcia-cs.tar.gz
into
	/usr/src/modules/pcmcia-cs/

I have patched 
	/usr/src/kernel-source-2.2.19/Makefile
using the flavour patch in
	/usr/share/doc/kernel-source-2.2.19/Flavours.gz

I have built the kernel with the commands
	cd /usr/src/linux/
	make-kpkg --flavour=biaggi --revision=custom.1.0 kernel_image
resulting in the the file
	/usr/src/kernel-image-2.2.19+biaggi_custom.1.0_i386.deb

I have built the pcmcia modules with the commands
	cd /usr/src/linux/
	make-kpkg --flavour=biaggi --revision=custom.1.0 kernel_image
resulting in the file
	/usr/src/pcmcia-modules-2.2.19+biaggi_3.1.22-0.1potato+custom.1.0_i386.deb

I have installed the .deb packages.

Thanx!


- Steinar



Reply to: