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

Re: Kernel for woody



David Whedon <dwhedon@gordian.com> wrote:

> If it is just a question of rebuilding tha packages, I can probably
> help.  I haven't gotten the pcmcia-cs buld to make flavors yet.

This is how I get the kernel source prepared for flavours:

(1) Unpack the kernel source tree.

(2) Add a line defining the FLAVOUR makefile variable as the first
    line of Makefile in the tree.  For example,

    FLAVOUR = compact

(3) Apply any necessary patches.

(4) I actually delete the entire "debian" subdirectory and run

    make-kpkg --revision=2.2.19pre17-1 --flavour=compact configure

    The same thing can be accomplished by ensuring that the first line
    of the debian/changelog file reads

    kernel-source-2.2.19pre17-compact (2.2.19pre17-1) unstable; urgency=low

    and running "make oldconfig".

If you do this to the kernel source tree, you should be able to build
the PCMCIA packages for this flavor kernel.  The recommended way to
build the PCMCIA packages (which I use) is to set the KPATH and KSRC
environment variables and run dpkg-buildpackage.  To do this, I use
make, with a Makefile that contains the following:

----------------------------------------
KPATH=${PWD}/kernels/kernel-source-2.2.17-2.2.17:${PWD}/kernels/kernel-source-2.2.17-compact-2.2.17:${PWD}/kernels/kernel-source-2.2.17-ide-2.2.17:${PWD}/kernels/kernel-source-2.2.17-idepci-2.2.17:${PWD}/kernels/kernel-source-2.2.18-2.2.18:${PWD}/kernels/kernel-source-2.2.18-ide-2.2.18:${PWD}/kernels/kernel-source-2.2.19pre17-2.2.19pre17:${PWD}/kernels/kernel-source-2.2.19pre17-compact-2.2.19pre17:${PWD}/kernels/kernel-source-2.2.19pre17-ide-2.2.19pre17:${PWD}/kernels/kernel-source-2.2.19pre17-idepci-2.2.19pre17
KSRC=${PWD}/kernels/kernel-source-2.2.19pre17-2.2.19pre17

${package}_${ver}-${deb}_i386.deb: ${package}-${ver}
	cd ${package}-${ver} && \
	KSRC=${KSRC} \
	KPATH=${KPATH} \
	CC=gcc272 dpkg-buildpackage -rfakeroot
----------------------------------------

Of course, the kernel source trees are contained in the "kernels"
subdirectory.  You can figure out what the Makefile variables are used
for.  The "CC=gcc272" is necessary because the kernel images have been
built with v2.7.2 of gcc, and therefore, I need to use the same
compiler to build compatible modules.

- Brian



Reply to: