linux/debian
Thiemo Seufer 2411151738 * Add patches from linux-mips.org's 2.6.18-stable branch:
- bugfix/copy-user-highpage.patch, needed for cache alias handling
      on mips/mipsel/hppa.
    - bugfix/mips/syscall-wiring.patch, fixes TLS register access, and
      n32 rt_sigqueueinfo.
    - bugfix/mips/sb1-flush-cache-data-page.patch, missing cache flush
      on SB-1.
    - bugfix/mips/trylock.patch, fix trylock implementation for R1x000
      and R3xxx.
    - bugfix/mips/smp-cpu-bringup.patch, correct initialization of
      non-contiguous CPU topology.
    - bugfix/mips/header-exports.patch, clean up userland exports of
      kernel headers.
    - bugfix/mips/sb1-interrupt-handler.patch, fix broken interrupt
      routing on SB-1.
    - bugfix/mips/cache-alias.patch, fixes #387498 for mips/mipsel.
    - bugfix/mips/ip22-zilog-console.patch, fix long delays seen with
      SGI ip22 serial console.
    - bugfix/mips/signal-handling.patch, fixes a signal handling race
      condition shown with gdb.
    - bugfix/mips/sb1-duart-tts.patch, replaces mips-sb1-duart-tts.patch,
      use standard Linux names for SB-1 consoles.
    - bugfix/mips/wait-race.patch, correct behaviour of the idle loop.
    - bugfix/mips/sgi-ioc3.patch, checksumming fix for IOC3 network
      driver.
    - features/mips/qemu-kernel.patch, support for the mips/mipsel
      machine emulated by Qemu.
    - features/mips/backtrace.patch, reimplementation of stack analysis
      and backtrace printing, useful for in-kernel debugging.
    - bugfix/mips/dec-scsi.patch, replaces mips-dec-scsi.patch, fixes DSP
      SCSI driver for DECstations.
    - bugfix/mips/dec-serial.patch, replaces mips-dec-serial.patch, fix
      serial console handling on DECstations.

svn path=/dists/trunk/linux-2.6/; revision=7681
2006-11-02 09:54:18 +00:00
..
arch Revert reversion of alpha compiler switch. 2006-11-01 15:48:20 +00:00
bin debian/bin/gencontrol.py: Replace ~ in linux-tree names. 2006-10-10 11:24:41 +00:00
lib/python/debian_linux debian/lib/python/debian_linux/gencontrol.py: Factor out recurse code. 2006-10-01 21:03:16 +00:00
modules debian/modules/gencontrol.py 2006-10-01 21:10:33 +00:00
patches * Add patches from linux-mips.org's 2.6.18-stable branch: 2006-11-02 09:54:18 +00:00
templates Reintroduce revisions 7641 to 7648. 2006-10-28 14:44:41 +00:00
README * Set compiler build dependencies from config informations. 2006-01-06 22:32:16 +00:00
README.Debian doc fixes 2006-07-04 12:36:31 +00:00
README.build Merge /dists/sid/linux-2.6. 2006-03-21 22:48:04 +00:00
changelog * Add patches from linux-mips.org's 2.6.18-stable branch: 2006-11-02 09:54:18 +00:00
compat Initial commit of common kernel-image infrastructure. 2005-05-10 04:16:53 +00:00
copyright debian/copyright: Update FSF address. 2005-09-14 09:41:50 +00:00
rules * debian/bin: Update svn:ignore propery. 2006-09-08 08:30:49 +00:00
rules.defs * Use generated rules, effectively remove second flavour resolver. 2005-08-14 19:59:43 +00:00
rules.real debian/changelog, debian/rules.real: Remove changes. 2006-10-06 20:19:55 +00:00

README

Migrating to the common kernel-image package
-------------------------------------------- 
Files for architecture <arch> should be placed into arch/<arch>. This
directory normally contains a common config file for this architecture
('config'), flavour-specific config files, Makefile.inc file,
controlling the build for this arch, and the defines file, containing
the machine descriptions for various flavours.  For arches with
subarches the subdirectory arch/<arch>/<subarch> with the same file
structure must be created for each subarch.

Kernel config files
-------------------
Configuration files are constructed dynamically by concatenating a number
of config files as described below. 

For architecture without subarches:

  arch/config
  arch/<arch>/config 
  arch/<arch>/config.<flavour>
  
For architecture with subarches:

  arch/config
  arch/<arch>/config
  arch/<arch>/<subarch>/config
  arch/<arch>/<subarch>/config.<flavour>

Control file
------------
The master control file debian/control must be generated before
the package is uploaded. debian/rules contains the debian/control 
target, which generates the control file by invoking the 
debian/bin/gencontrol.py script, which combines the templates from
the templates directory and arch/subarch specific defines file to
produce the debian/control file. Note that this target is intentionally
made to fail with a non-zero exit code to make sure that it is never
run during an automatic build. The following variables are substituted
into the templates:

@version@      Upstream kernel version, for example 2.6.11.
@major@        The major version, for example 2.6
@arch@         The Debian arch name, such as powerpc or i386.
@subarch@      The subarch - only used by powerpc right now.
@flavour@      The build flavour, such as 686 or k7-smp.
@class@        The CPU/architecture class; displayed in synopsis.  It should
               be fairly short, as the synopsis is supposed to be <80 chars.
               It should be in the form "foo class", and will show up in the
	       description as "foo class machines".
@longclass@    The CPU/architecture class; displayed in the extended
               description.  The same rules apply as in @class@.  If
	       this is unset, it will default to @class@.
@desc@         (Potentially) multi-line verbiage that's appended to
               -image descriptions.
@abiname@      Current abiname, a single digit.

Normally, the arch-specific contents should be controlled by
adjusting the corresponding defines file.

Makefile.inc
------------
Each architecture subdirectory in arch may contain a Makefile.inc
file, which is included by debian/rules after definining all the
variables. It may be used to override the standard variables on
per-architecture basis and other evil things. So far the valid uses of
this file include the setting of the following variables:

image_postproc

  A command to be run after the kernel image is built. As far as I know,
  it only required on sparc for stripping of the kernel which is too big
  to be booted otherwise. Typical use is too ugly to be presented here.