aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2013-04-12 08:12:50 -0400
committerMichal Marek <mmarek@suse.cz>2013-04-18 08:56:44 -0400
commit6615d6c322a364be45324f553db57545a3b2e95f (patch)
treec06973c0d14476aee388d4e9608f3ecb9efcb2be /Makefile
parent6bc6c9409de03987736df58c411c3aa7b5aed051 (diff)
rpm-pkg: Do not package the whole source directory
The source tree can contain lots of uninteresting data like tag or cscope files, packaging which slows down make rpm needlessly. It can also break the build, if the tree contains an unrelated file named *.spec. The downside of this change is that new subdirectories have to be added to the KBUILD_ALLDIRS variable in the top-level Makefile. The upside is that the behavior is more predictable. Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5bd9f7700eb9..84392dfa682f 100644
--- a/Makefile
+++ b/Makefile
@@ -756,6 +756,8 @@ export KBUILD_VMLINUX_INIT := $(head-y) $(init-y)
756export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y) 756export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y) $(drivers-y) $(net-y)
757export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds 757export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds
758export LDFLAGS_vmlinux 758export LDFLAGS_vmlinux
759# used by scripts/pacmage/Makefile
760export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(vmlinux-alldirs)) arch Documentation include samples scripts tools virt)
759 761
760vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) $(KBUILD_VMLINUX_MAIN) 762vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) $(KBUILD_VMLINUX_MAIN)
761 763