[kernel] r5538 - people/waldi/linux-2.6/debian

Bastian Blank waldi at costa.debian.org
Sat Jan 21 11:43:57 UTC 2006


Author: waldi
Date: Sat Jan 21 11:43:55 2006
New Revision: 5538

Modified:
   people/waldi/linux-2.6/debian/rules.real
Log:
debian/rules.real: Only install neccesary files into headers packages.


Modified: people/waldi/linux-2.6/debian/rules.real
==============================================================================
--- people/waldi/linux-2.6/debian/rules.real	(original)
+++ people/waldi/linux-2.6/debian/rules.real	Sat Jan 21 11:43:55 2006
@@ -197,15 +197,28 @@
 install-header-$(ARCH)-$(SUBARCH): export DH_OPTIONS = -p$(PACKAGE_NAME)
 install-header-$(ARCH)-$(SUBARCH): BASE_DIR = /usr/src/$(PACKAGE_NAME)
 install-header-$(ARCH)-$(SUBARCH): SOURCE_DIR = $(BUILD_DIR)/source-$(ARCH)-$(SUBARCH)
+install-header-$(ARCH)-$(SUBARCH): DIR = $(CURDIR)/debian/$(PACKAGE_NAME)/$(BASE_DIR)
 install-header-$(ARCH)-$(SUBARCH): $(STAMPS_DIR)/source-$(ARCH)-$(SUBARCH)
 	dh_testdir
 	dh_testroot
 	dh_clean -k -d
-	dh_install $(SOURCE_DIR)/include $(BASE_DIR)
 	cd $(SOURCE_DIR); \
-	find . -path './scripts/*' -prune -o -path './Documentation/*' -prune -o -type f \
-	  \( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Rules.make' \) -print | \
-	  cpio -pd --preserve-modification-time $(CURDIR)/debian/$(PACKAGE_NAME)/$(BASE_DIR)
+	( \
+	  find . \
+	    -path './Documentation/*' -prune -o \
+	    -path './arch/*' -prune -o \
+	    -path './include/asm*' -prune -o \
+	    -path './scripts/*' -prune -o \
+	    -path './include/' -o \
+	    \( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Rules.make' \) -print; \
+	  for i in $(KERNEL_HEADER_DIRS); do \
+	    find arch/$$i \
+	      \( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Rules.make' \) -print; \
+	    find include/asm-$$i -print; \
+	  done; \
+	) \
+	| \
+	cpio -pd --preserve-modification-time $(DIR)
 	$(MAKE) -f debian/rules.real install-base
 
 install-headers-all: DH_OPTIONS = -plinux-headers-$(VERSION)



More information about the Kernel-svn-changes mailing list