From 28eab7aa6b437d32004070fd14a230504c2e7edf Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Thu, 4 Aug 2016 00:55:52 +0100 Subject: [PATCH] linux-headers: Exclude all .cmd files These are not needed for building OOT modules and their contents may vary depending on whether /bin/sh is bash. --- debian/changelog | 1 + debian/rules.real | 1 + 2 files changed, 2 insertions(+) diff --git a/debian/changelog b/debian/changelog index 085fa0fcf..a206ec93d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -24,6 +24,7 @@ linux (4.7.2-1) UNRELEASED; urgency=medium * usbip: Use the locally-installed * Exclude redundant and unreproducible files from binary packages - usbip: Put all autotools-generated files in the build directory + - linux-headers: Exclude all .cmd files [ Martin Michlmayr ] * [armhf] Enable MMC_SDHCI_IPROC and HW_RANDOM_BCM2835 for BCM2835. diff --git a/debian/rules.real b/debian/rules.real index 7c4125ce2..2175cb48f 100644 --- a/debian/rules.real +++ b/debian/rules.real @@ -299,6 +299,7 @@ install-headers_$(ARCH)_$(FEATURESET)_$(FLAVOUR): $(STAMPS_DIR)/build_$(ARCH)_$( cp -a $(SOURCE_DIR)/{.config,.kernel*,Module.symvers,include} $(DIR) cp -a $(SOURCE_DIR)/arch/$(KERNEL_ARCH)/include $(DIR)/arch/$(KERNEL_ARCH) cp -a $(SOURCE_DIR)/arch/$(KERNEL_ARCH)/kernel/asm-offsets.s $(DIR)/arch/$(KERNEL_ARCH)/kernel + find $(DIR) -name '*.cmd' -delete if [ -f $(SOURCE_DIR)/arch/$(KERNEL_ARCH)/lib/crtsavres.o ]; then \ mkdir $(DIR)/arch/$(KERNEL_ARCH)/lib; \