From b89b1be3fb341b027b123e6c7f5fee4d9077f1e9 Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Tue, 19 Jul 2005 23:15:07 +0000 Subject: [PATCH] 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 --- debian/Makefile | 1 - debian/README | 11 ----------- debian/templates/header-install.in | 25 ++----------------------- 3 files changed, 2 insertions(+), 35 deletions(-) diff --git a/debian/Makefile b/debian/Makefile index 0dda47f27..134ce10b7 100644 --- a/debian/Makefile +++ b/debian/Makefile @@ -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) # diff --git a/debian/README b/debian/README index 2ec64f49a..2b8a48728 100644 --- a/debian/README +++ b/debian/README @@ -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 diff --git a/debian/templates/header-install.in b/debian/templates/header-install.in index f207604bb..dd4ae2985 100644 --- a/debian/templates/header-install.in +++ b/debian/templates/header-install.in @@ -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.