r3238 - in branches/kernel-image-2.6.11: . debian

Jurij Smakov jurij-guest@costa.debian.org
Thu, 26 May 2005 01:42:15 +0000


Author: jurij-guest
Date: 2005-05-26 01:42:15 +0000 (Thu, 26 May 2005)
New Revision: 3238

Added:
   branches/kernel-image-2.6.11/debian/Makefile
   branches/kernel-image-2.6.11/debian/README
   branches/kernel-image-2.6.11/debian/TODO
   branches/kernel-image-2.6.11/debian/arch/
   branches/kernel-image-2.6.11/debian/bin/
   branches/kernel-image-2.6.11/debian/header-install.in
   branches/kernel-image-2.6.11/debian/post-install.in
Removed:
   branches/kernel-image-2.6.11/Makefile
   branches/kernel-image-2.6.11/README
   branches/kernel-image-2.6.11/TODO
   branches/kernel-image-2.6.11/arch/
   branches/kernel-image-2.6.11/bin/
   branches/kernel-image-2.6.11/header-install.in
   branches/kernel-image-2.6.11/post-install.in
Log:
Moved all stuff to debian/ in preparation for
the integration with kernel-source. Everybody
please SVN UP before changing anything!


Deleted: branches/kernel-image-2.6.11/Makefile
===================================================================
--- branches/kernel-image-2.6.11/Makefile	2005-05-24 06:32:34 UTC (rev 3237)
+++ branches/kernel-image-2.6.11/Makefile	2005-05-26 01:42:15 UTC (rev 3238)
@@ -1,223 +0,0 @@
-#
-# This Makefile executes the unpack/build/binary targets for a single
-# subarch, which is passed in the subarch variable. Empty subarch
-# variable means that we are building for an arch without the subarch.
-# Additionally, variables version, abiname and ktver are
-# expected to be available (need to be exported from the parent process).
-# It is possible to override the flavours by setting the flavours
-# variable. 
-#
-SHELL  := sh -e
-debver := $(version)-$(abiname)
-uver   := $(subst .,_,$(version))
-debnum := -$(abiname)
-kbpkg  := kernel-kbuild-$(version)-$(abiname)
-# This will eventually have to be changed to a command, applying
-# the debian's patches from the local tree (arch/patches?)
-kpatch := /usr/src/kernel-patches/all/$(version)/apply/debian $(version)-$(ktver)
-DEBIAN_UPSTREAM_VERSION := $(version)
-ifeq (,$(DEB_HOST_ARCH))
-  DEB_HOST_ARCH  := $(shell dpkg-architecture -qDEB_HOST_ARCH)
-  DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
-endif
-export version debnum DEBIAN_UPSTREAM_VERSION
-
-karch := $(DEB_HOST_ARCH)
-#
-# Build the list of common config files to be included
-#
-ifeq ($(subarch),none)
-  basedir := arch/$(karch)
-  append  := 
-else
-  basedir := arch/$(karch)/$(subarch)
-  append  := -$(subarch)
-endif
-default := $(basedir)/config.default
-configs := $(notdir $(wildcard $(basedir)/config.*))
-configs := $(filter-out config.common config.default, $(configs))
-tkdir   := kernel-source-$(version)
-kdir    := kernel-source-$(version)-$(subarch)
-ifndef flavours
-  flavours := $(patsubst config.%,%,$(configs))
-endif
-
--include $(basedir)/Makefile.inc
-
-#
-# Here we construct the command lines for different make-kpkg
-# calls (build, kernel-image, kernel-headers) based on the values
-# of variables defined so far and provided by the arch/subarch
-# in Makefile.inc. @flavour@ in the expressions is going to be
-# replaced by the flavour for which the command is run. 
-#
-kpkg_headers_cmd := HEADER_CLEAN_HOOK='$(CURDIR)/header-install-$(subarch)'
-kpkg_headers_cmd += make-kpkg --append-to-version $(debnum)$(append)
-kpkg_build_cmd  := make-kpkg --append-to-version $(debnum)-@flavour@
-ifdef added_patches
-  kpkg_headers_cmd += --added_patches $(subst @uver@,$(uver),$(added_patches))
-  kpkg_build_cmd   += --added_patches $(subst @uver@,$(uver),$(added_patches))
-endif
-ifdef build_subarch
-  kpkg_build_cmd += --subarch $(build_subarch)
-endif
-ifdef headers_subarch
-  kpkg_headers_cmd += --subarch $(headers_subarch)
-endif
-ifdef build_makeflags
-  kpkg_build_cmd := MAKEFLAGS=$(build_makeflags) $(kpkg_build_cmd)
-endif
-#
-# Note that next variable (kpkg_image_pre) is not going to be evaluated
-# immediately. When referenced, the variable $* will have the current
-# flavour for which the command is executed. So if this flavour will
-# happen to be in the image_prefix_flavours list, the call to make-kpkg
-# will be prepended with contents if image_prefix.
-#
-kpkg_image_pre = $(if $(filter $*,$(image_prefix_flavours)),$(image_prefix))
-kpkg_image_cmd := $(kpkg_build_cmd) --initrd kernel_image
-kpkg_build_cmd += build
-kpkg_headers_cmd += kernel-headers
-ifndef headers_dirs
-  headers_dirs = $(karch)
-endif
-ifneq (no,$(include_common_config))
-  ccommon := arch/config.common
-endif
-ccommon += arch/$(karch)/config.common arch/$(karch)/$(subarch)/config.common
-#
-# Here we build lists of directories and stamps which we will depend on.
-# For each class of such targets there is a pattern rule which will catch
-# it and do the right thing.
-#
-bdirs   := $(addprefix build-$(subarch)-, $(flavours))
-bstamps := $(addprefix build-stamp-$(subarch)-, $(flavours))
-istamps := $(addprefix install-stamp-$(subarch)-, $(flavours))
-#
-# Targets
-#
-unpack: unpack-stamp-$(subarch)
-unpack-stamp-$(subarch): $(configs) header-install-$(subarch) $(bdirs)
-	touch unpack-stamp-$(subarch)
-
-build: build-stamp-$(subarch)
-build-stamp-$(subarch): unpack-stamp-$(subarch) $(bstamps)
-	touch build-stamp-$(subarch)
-
-binary-indep: build
-binary-arch: build headers-stamp $(istamps)
-	mv *.deb ..
-
-install-stamp-$(subarch)-%: build-$(subarch)-% build-stamp-$(subarch)-%
-	cp -al $< install-$*;
-	cd install-$*; \
-	$(strip $(kpkg_image_pre) $(subst @flavour@,$*,$(kpkg_image_cmd)))
-	cat install-$*/debian/files >> debian/files;
-	rm -rf install-$*;
-	touch install-stamp-$(subarch)-$*
-
-headers-stamp: $(kdir)
-	dh_testdir
-	dh_clean -k
-	dh_installdirs
-	cp $(default) $(kdir)/.config
-	cd $(kdir); $(kpkg_headers_cmd)
-	cat $(kdir)/debian/files >> debian/files
-	touch headers-stamp
-
-binary:	binary-indep binary-arch
-
-header-install-$(subarch): header-install.in
-	sed -e 's,@kbpkg@,$(kbpkg),g'				\
-	    -e 's,@ksource_dir@,$(CURDIR)/$(kdir),g'		\
-	    -e 's,@headers_dirs@,$(headers_dirs),g'		\
-	    -e 's,@headers_extra@,$(headers_extra),g'		\
-            header-install.in > header-install-$(subarch)
-	chmod u+x header-install-$(subarch)
-#
-# The way to make the correct package names is to make a
-# subarch-specific post-install script...
-#
-post-install-$(subarch): post-install.in
-	sed -e 's,@initrd_modules@,$(initrd_modules),'	\
-	    -e 's,@append_subarch@,$(append),'		\
-	    post-install.in > post-install-$(subarch)
-#
-# Generates the kernel config file for a subarch by merging
-# the arch-independent config file (arch/config.common),
-# arch-specific config file (arch/$(karch)/config.common),
-# and subarch specific one (arch/$(karch)/config.subarch).
-# It is possible to avoid the inclusion of the arch-indep
-# config file by setting include_common_config = no in the
-# arch/$(karch)/Makefile.inc.
-#
-config.%:
-	@echo "configs=$(configs)"
-	@echo "Generating configuration file $@:"
-	rm -f $@
-	for i in $(ccommon); do	\
-	  if [ -f $${i} ]; then	\
-	    cat $${i} >> $@;	\
-	  fi;			\
-	done
-#	Flavour config file must be present
-	cat $(basedir)/$@ >> $@			 
-
-$(kdir): post-install-$(subarch)
-	dh_testdir
-	tar jxf /usr/src/$(tkdir).tar.bz2
-	mkdir -p $(tkdir)/debian
-	cp debian/changelog $(tkdir)/debian
-	cp debian/control   $(tkdir)/debian
-	cp debian/copyright $(tkdir)/debian
-	touch $(tkdir)/debian/official
-	install post-install-$(subarch) $(tkdir)/debian/post-install
-	cd $(tkdir) && $(kpatch)
-#	Arch/subarch-specific patches
-	if [ -d $(basedir)/patches ] &&				\
-	   [ -s $(basedir)/patches/list ]; then			\
-	  cd $(tkdir);						\
-	  for i in $$(cat ../$(basedir)/patches/list); do	\
-	    patch -p1 < ../$(basedir)/patches/$${i};		\
-	  done;							\
-	fi
-	mv $(tkdir) $@
-#
-# This target performs a build for a particular flavour. Note
-# that in this file it should be always placed *before* the
-# build-$(subarch)-% target, which creates the build directory.
-#
-# Some arches have extra arch/${ARCH}/kernel/asm-offsets.s files
-# which have to be included in kernel-headers. The problem is that
-# they are only generated during build and we never performed a
-# full build in the directory $(kdir) where kernel-headers are
-# built. So, after build we check whether current build arch has
-# such a file and symlink it into the $(kdir) if necessary.
-# Note that to get into the kernel-headers package the arch/subarch
-# still needs variables headers_dirs and headers_extra set.
-#
-build-stamp-$(subarch)-%: build-$(subarch)-%
-	dh_testdir
-	PATH=$$PWD/bin:$$PATH;					\
-	cd $<;							\
-	$(subst @flavour@,$*,$(kpkg_build_cmd));		\
-	$(if $(image_postproc),$(image_postproc),true);		\
-	arch=$$(basename $$(readlink include/asm));		\
-	arch="$${arch#asm-}";					\
-	src="arch/$${arch}/kernel/asm-offsets.s";		\
-	dst="../$(kdir)/$${src}";				\
-	if [ -f "$${src}" ] && [ ! -e "$${dst}" ]; then		\
-	  ln -s "$$(pwd)/$${src}" "$${dst}";				\
-	fi	
-	touch build-stamp-$(subarch)-$*
-#
-# Creates a build directory for a particular flavour
-#
-build-$(subarch)-%: $(kdir) config.%
-	dh_testdir
-	if [ ! -d $@ ]; then					\
-	  cp -al $(kdir) $@;					\
-	  cp config.$* $@/.config;				\
-	fi
-
-.PHONY: build unpack binary-indep binary-arch binary

Deleted: branches/kernel-image-2.6.11/README
===================================================================
--- branches/kernel-image-2.6.11/README	2005-05-24 06:32:34 UTC (rev 3237)
+++ branches/kernel-image-2.6.11/README	2005-05-26 01:42:15 UTC (rev 3238)
@@ -1,198 +0,0 @@
-Migrating to the common kernel-image package
---------------------------------------------
-Files for architecture <arch> should be placed into arch/<arch>.
-Minimally, this directory should contain a control.in, config.default
-and at least one flavour configuration file config.<flavour>. It can
-optionally contain config.common, Makefile.inc and multiple flavour
-configuration files. For arches with subarches the subdirectory
-arch/<arch>/<subarch> with the same file structure must be created
-for each subarch.
-
-Support for arch/subarch-specific patches
------------------------------------------
-Patches specific to a particular architecture or subarchitecture and
-not included into the debian patch set should be placed in the
-'patches' subdirectory of arch/<arch> or arch/<arch>/<subarch>. This
-directory is expected to contain the patch files and a file 'list'
-with list of patches to apply.
-
-Config files
-------------
-Configuration files are constructed dynamically by concatenating a number
-of config files as described below. Any of the files, except the .default
-and lowest-level .<flavour> files, may be missing.
-
-For architecture without subarches:
-
-  Configuration file for kernel-image:
-
-  arch/config.common
-  arch/<arch>/config.common 
-  arch/<arch>/config.<flavour>
-  
-  Configuration file for kernel-headers:
-
-  arch/<arch>/config.default
-
-For architecture with subarches:
-
-  arch/config.common
-  arch/<arch>/config.common
-  arch/<arch>/<subarch>/config.common
-  arch/<arch>/<subarch>/config.<flavour>
-
-  Configuration file for kernel-headers:
-
-  arch/<arch>/<subarch>/config.default
-
-It is possible to avoid the inclusion of the arch-independent
-config file (handy for the transitional period) by setting the
-include_common_config variable to 'no' in Makefile.inc.
-
-Debian and arch/subarch specific patches
------------------------------
-This is not really settled yet. Ideally we would like to integrate all
-this stuff into the kernel-source package. So for now it is probably
-reasonable to assume that common-arch debian patches are going to be
-in debian/patches directory. As I understand, we will not need the
-kernel-tree stuff, as the source with patches is going to accompany each
-upload. So we might just place them there along with the list, which will
-determine the order of application. For unmerged arch/subarch specific
-patches we can do the same in the arch/subarch directory: patches/
-subdir will contain patches and a list. Currently the kernel is patched
-using the kernel-source package only.
-
-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 concatenating the 
-common debian/control.in and all the control.in files found in
-and in subdirectories of arch/<arch>, and performing the variable
-substitution. Currently the following variables are going to be
-substituted:
-
-@karch@     Replaced by the architecture string, identical to
-            DEB_HOST_ARCH, as returned by dpkg-architecture.
-@version@   Upstream kernel version, for example 2.6.11.
-@ktver@     Minor version of kernel-tree to build-depend on. 
-@abiname@   Abiname value for this set of packages.
-@kbpkg@     Current name and version of the kernel-build
-            package to build-depend on. Typical value may 
-            be 'kernel-build-2.6-3', for example.
-
-After variable substitution the resulting file is formatted to
-ensure that the only blank lines are the ones separating the
-entries (i.e. before the next Package: line).
-
-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:
-
-include_common_config	
-
-  Setting it to 'no' (without quotes) will prevent the common kernel
-  config from being included for this particular architecture.
-  Typical usage:
-
-  include_common_config := no
-
-headers_dirs		
-
-  This variable is substituted into the headers-install script,
-  controlling which asm-* directories are included into the
-  kernel-headers package. By default it is set to karch (see
-  above). See header-install.in file for detail. Typical usage:
-  
-  headers_dirs := sparc | sparc64
-
-headers_extra
-
-  This variable is substituted into the headers-install script,'
-  and may be used to specify extra files, which a particular
-  architecture would like to include in the kernel-headers package.
-  Files should be specified with a full path relative to the
-  top-level kernel directory, unquoted and separated by spaces.
-  Typical usage:
-
-  headers_extra := arch/i386/kernel/asm-offsets.s
-
-headers_subarch
-
-  The subarch to pass to the --subarch option for the make-kpkg
-  call to build the kernel-headers. Typical usage:
-
-  headers_subarch := sparc64
-
-added_patches
-
-  Setting this variable to non-empty value will cause an option
-  --added_patches to be added to the make-kpkg 'build' and
-  'kernel-image' calls. The value of the variable will be
-  given as an argument for the --added-patchs option. The value
-  of this variable may contain a special string @uver@ which
-  is going to be expanded into the upstream kernel's version
-  with dots replaced by underscores (for example, 2_6_11 for the
-  kernel version 2.6.11). Typical usage:
-
-  added_patches := debian,hppa-@uver@
-
-build_subarch
-
-  Setting this variable to non-empty value will cause an option
-  --subarch $(build_subarch) added to 'build' and 'kernel-image'
-  make-kpkg calls. In general, if you wish to add subarch support
-  for your architecture, you should contact kernel-package maintainer
-  to ensure that the flavour name correctly maps onto a kernel
-  subarch name. Typical usage:
-
-  build_subarch := pmac
-
-  Note that the value of this variable is ignored.
-
-build_makeflags
-
-  This variable may contain the make flags settings for the
-  make-kpkg invocation in the 'build' target. Currently it is
-  only used by amd64, where it should be set to something like
-
-  build_makeflags := 'CC=amd64-linux-gcc V=1'
-
-  The value of the variable must be properly quoted. 
- 
-initrd_modules
-
-  This variable may contain a space-separated list of modules
-  which should be hard-linked into the /lib/modules/<version>/initrd
-  directory, so that they will be included by mkinitrd. Full
-  pathname relative to the /lib/modules/<version> directory should
-  be give, no quoting is necessary. Typical usage:
-
-  initrd_modules := kernel/drivers/video/vesafb.ko kernel/security/capability.ko
-
-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.
-
-image_prefix_flavours
-image_prefix
-
-  These variables allow to prepend the 'make-kpkg kernel_image' call with
-  an arbitrary prefix for selected flavours. Some architectures have a
-  32- and 64-bit versions. If kernels are built on the 64-bit hardware, then
-  building a 32-bit kernel usually requires using a wrapper which sets the
-  correct execution domain (such as sparc32 or linux32). If the variable
-  image_prefix_flavours is non-empty and contains a space-separated list
-  if flavours, then make-kpkg invocation to create a kernel_image target
-  will be prepended with contents of the image_prefix variable. Typical
-  usage:
-
-  image_prefix_flavours := sparc32 sparc32-smp
-  image_prefix          := sparc32
-  

Deleted: branches/kernel-image-2.6.11/TODO
===================================================================
--- branches/kernel-image-2.6.11/TODO	2005-05-24 06:32:34 UTC (rev 3237)
+++ branches/kernel-image-2.6.11/TODO	2005-05-26 01:42:15 UTC (rev 3238)
@@ -1,7 +0,0 @@
-Some things to think about:
-
-* Looks like it would be optimal to have a common kernel-headers package
-  which would contain common headers for all arches without unmerged patches.
-
-* Generate the control file for individual files dynamically, so that we
-  do not have that ridiculous master control file.

Copied: branches/kernel-image-2.6.11/debian/Makefile (from rev 3237, branches/kernel-image-2.6.11/Makefile)

Copied: branches/kernel-image-2.6.11/debian/README (from rev 3237, branches/kernel-image-2.6.11/README)

Copied: branches/kernel-image-2.6.11/debian/TODO (from rev 3237, branches/kernel-image-2.6.11/TODO)

Copied: branches/kernel-image-2.6.11/debian/arch (from rev 3237, branches/kernel-image-2.6.11/arch)

Copied: branches/kernel-image-2.6.11/debian/bin (from rev 3237, branches/kernel-image-2.6.11/bin)

Copied: branches/kernel-image-2.6.11/debian/header-install.in (from rev 3237, branches/kernel-image-2.6.11/header-install.in)

Copied: branches/kernel-image-2.6.11/debian/post-install.in (from rev 3237, branches/kernel-image-2.6.11/post-install.in)

Deleted: branches/kernel-image-2.6.11/header-install.in
===================================================================
--- branches/kernel-image-2.6.11/header-install.in	2005-05-24 06:32:34 UTC (rev 3237)
+++ branches/kernel-image-2.6.11/header-install.in	2005-05-26 01:42:15 UTC (rev 3238)
@@ -1,33 +0,0 @@
-#!/bin/sh
-#
-# This is the make-kpkg hook file, which runs when make-kpkg is invoked
-# (from debian/rules) to create the flavour-independent kernel-headers
-# package. Two major tasks which it performs are a) copying the extra
-# files into the temporary kernel-headers directory and b) removing
-# unneeded include/asm-* directories. 
-#
-set -e
-
-cd @ksource_dir@
-{
-    find . -path './Documentation/*' -prune -o \
-	   -path './debian/*' -prune -o -type f \
-	   \( -name Makefile -o -name 'Kconfig*' -o -path './scripts/*' \) -print
-    for i in @headers_extra@; do
-	echo "${i}"
-    done
-} | cpio -pd --preserve-modification-time $OLDPWD
-cd - > /dev/null
-
-remove=
-cd include
-for i in asm-*; do
-	case ${i#asm-} in
-	generic | @headers_dirs@)
-		;;
-	*)
-		remove="$remove $i"
-		;;
-	esac
-done
-${remove:+rm -r $remove}

Deleted: branches/kernel-image-2.6.11/post-install.in
===================================================================
--- branches/kernel-image-2.6.11/post-install.in	2005-05-24 06:32:34 UTC (rev 3237)
+++ branches/kernel-image-2.6.11/post-install.in	2005-05-26 01:42:15 UTC (rev 3238)
@@ -1,115 +0,0 @@
-#!/bin/sh
-#
-# This is the hook file executed by make-kpkg in the end of creation
-# of the kernel-image for a particular flavour. The major task it performs
-# is the creation of the flavour-specific kernel-headers package.
-#
-set -e
-
-debhelper_pre() {
-	dh_clean -k --package="$1"
-	dh_installdirs --package="$1"
-}
-
-debhelper_post() {
-	dh_installdocs --package="$1"
-	dh_installchangelogs --package="$1"
-	dh_compress --package="$1"
-	dh_fixperms --package="$1"
-	dh_installdeb --package="$1"
-	dh_gencontrol --package="$1"
-	dh_md5sums --package="$1"
-	dh_builddeb --package="$1"
-}
-# The version which ends up here is something like
-# $(version)-$(abiname)-$(flavour) and debnum is just
-# -$(abiname), so that the variables get the values:
-# suffix=$(flavour)
-# prefix=$(version)-$(abiname)
-# prefix is then used to form a destination directory
-# to link to. For cases with subarch we need to link
-# to kernel-headers-$(version)-$(abiname)-$(subarch),
-# not just kernel-headers-$(version)-$(abiname). Note
-# that the append_subarch substitution must contain a
-# dash, if it is non-empty.
-#
-append='@append_subarch@'
-suffix=${version#*$debnum-}
-prefix=${version%%-*}${debnum}${append}
-pkg=kernel-headers-$version
-top=$PWD/debian/$pkg
-dir=$top/usr/src/kernel-headers-$version
-#
-# Here we need to find the kernel architecture which
-# is appropriate for the current flavour. It is available
-# in kernel-package as KERNEL_ARCH. Cleanest way is to get
-# make-kpkg export it to this script. 
-# 
-# Currently we'll have to do some fiddling here For
-# example for sparc we need to map sparc32* to 'sparc'
-# and sparc64* to 'sparc64'. The default for other
-# arches is the name of the architecture.
-#
-case ${DEB_HOST_ARCH} in
-  sparc*)
-    KERNEL_ARCH=${suffix%-smp}
-    KERNEL_ARCH=${KERNEL_ARCH%32}
-    ;;
-  *)
-    KERNEL_ARCH=${DEB_HOST_ARCH}
-    ;;
-esac
-
-debhelper_pre $pkg
-
-#
-# Stuff below is ugly as hell, but does the trick so I'm not
-# touching it until we can invent something better.
-#
-mkdir -p $dir/include/linux
-cp -a .config $dir
-echo $debnum-$suffix > $dir/.extraversion
-cp -a Module.symvers $dir
-
-find . -mindepth 1 -maxdepth 1 \
-	! -name debian -a ! -name Documentation -a ! -name include -a \
-	! -name '.*' -a \( \
-	-name Makefile -o -type d \) \
-	-printf "../kernel-headers-$prefix/%f\n" |
-	xargs ln -s --target-directory="$dir"
-
-cd include
-find . -mindepth 1 -maxdepth 1 \
-	! -name config -a ! -name linux -a \( \
-	! -name 'asm-*' -o -name asm-generic -o -name asm-${KERNEL_ARCH} \) \
-	-printf "../../kernel-headers-$prefix/include/%f\n" |
-	xargs ln -s --target-directory=$dir/include
-cp -a config $dir/include
-ln -sf asm-${KERNEL_ARCH} $dir/include/asm
-find linux -mindepth 1 -maxdepth 1 \
-	! -name autoconf.h -a ! -name compile.h -a ! -name version.h \
-	-printf "../../../kernel-headers-$prefix/include/linux/%f\n" |
-	xargs ln -s --target-directory=$dir/include/linux
-cp -a linux/autoconf.h linux/compile.h \
-	linux/version.h $dir/include/linux
-cd ..
-
-mkdir -p $top/lib/modules/$version
-ln -s /usr/src/kernel-headers-$version $top/lib/modules/$version/build
-
-debhelper_post $pkg
-
-#
-# Check whether we should force any modules to be available
-# on the initrd.
-#
-cd ${IMAGE_TOP}/lib/modules/${version}
-modules='@initrd_modules@'
-if [ -n "${modules}" ]; then
-  mkdir initrd
-  for i in ${modules}; do
-    if [ -f "${i}" ]; then
-      ln "${i}" initrd
-    fi
-  done
-fi