the cp stuff done in headers-install is actually done by kernel-package now;

no need to do it there anymore.  And, while we're at it, nuke $(headers_extra);
if archs really need it, they can add it to headers-install.in (I'd rather
see headers-install.in go away eventually, though).

svn path=/trunk/kernel/source/linux-2.6-2.6.12/; revision=3591
This commit is contained in:
Andres Salomon 2005-07-19 23:15:07 +00:00
parent 02f6f34434
commit b89b1be3fb
3 changed files with 2 additions and 35 deletions

1
debian/Makefile vendored
View File

@ -130,7 +130,6 @@ header-install-$(subarch): templates/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' \
templates/header-install.in > header-install-$(subarch)
chmod u+x header-install-$(subarch)
#

11
debian/README vendored
View File

@ -93,17 +93,6 @@ headers_dirs
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.
Note that you normally do not need to specify the files
arch/$(karch)/kernel/asm-offsets.s, they are going to be included
automatically.
headers_subarch
The subarch to pass to the --subarch option for the make-kpkg

View File

@ -2,32 +2,11 @@
#
# 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.
# package. The major tasks it performs is 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
#
# The command below will include all the asm-offsets.s files, which have
# have been linked into the linux-headers build directory during the
# buildng of the images.
#
find arch -name 'asm-offsets.s'
#
# And we need to include all the extra files too
#
for i in @headers_extra@; do
echo "${i}"
done
} | cpio -pd --preserve-modification-time $OLDPWD
cd - > /dev/null
# XXX: once we're using a linux-headers-$(version)-$(debnum) that's Arch: all,
# we'll want to drop this bit of code. The asm-* directories should remain.