diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-27 01:01:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-27 01:01:22 -0400 |
commit | 5b26fc8824da15a2fe9df89338a5a3cad41ba8ee (patch) | |
tree | 04dd34173591e2275a754053c86b06cc1e72cebe /arch | |
parent | e12fab28df1d7ae9369839a3af260a41447a5e79 (diff) | |
parent | c9c6837d39311b0cc14cdbe7c18e815ab44aefb1 (diff) |
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kbuild updates from Michal Marek:
- new option CONFIG_TRIM_UNUSED_KSYMS which does a two-pass build and
unexports symbols which are not used in the current config [Nicolas
Pitre]
- several kbuild rule cleanups [Masahiro Yamada]
- warning option adjustments for gcov etc [Arnd Bergmann]
- a few more small fixes
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild: (31 commits)
kbuild: move -Wunused-const-variable to W=1 warning level
kbuild: fix if_change and friends to consider argument order
kbuild: fix adjust_autoksyms.sh for modules that need only one symbol
kbuild: fix ksym_dep_filter when multiple EXPORT_SYMBOL() on the same line
gcov: disable -Wmaybe-uninitialized warning
gcov: disable tree-loop-im to reduce stack usage
gcov: disable for COMPILE_TEST
Kbuild: disable 'maybe-uninitialized' warning for CONFIG_PROFILE_ALL_BRANCHES
Kbuild: change CC_OPTIMIZE_FOR_SIZE definition
kbuild: forbid kernel directory to contain spaces and colons
kbuild: adjust ksym_dep_filter for some cmd_* renames
kbuild: Fix dependencies for final vmlinux link
kbuild: better abstract vmlinux sequential prerequisites
kbuild: fix call to adjust_autoksyms.sh when output directory specified
kbuild: Get rid of KBUILD_STR
kbuild: rename cmd_as_s_S to cmd_cpp_s_S
kbuild: rename cmd_cc_i_c to cmd_cpp_i_c
kbuild: drop redundant "PHONY += FORCE"
kbuild: delete unnecessary "@:"
kbuild: mark help target as PHONY
...
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/boot/bootp/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/vdso/Makefile | 2 | ||||
-rw-r--r-- | arch/h8300/boot/compressed/Makefile | 1 | ||||
-rw-r--r-- | arch/ia64/Makefile | 6 | ||||
-rw-r--r-- | arch/m32r/boot/compressed/Makefile | 1 | ||||
-rw-r--r-- | arch/mn10300/boot/compressed/Makefile | 1 | ||||
-rw-r--r-- | arch/nios2/boot/compressed/Makefile | 1 | ||||
-rw-r--r-- | arch/s390/boot/compressed/Makefile | 1 | ||||
-rw-r--r-- | arch/sh/boot/compressed/Makefile | 1 | ||||
-rw-r--r-- | arch/sh/boot/romimage/Makefile | 1 | ||||
-rw-r--r-- | arch/unicore32/boot/Makefile | 2 | ||||
-rw-r--r-- | arch/unicore32/boot/compressed/Makefile | 1 | ||||
-rw-r--r-- | arch/x86/boot/compressed/Makefile | 1 | ||||
-rw-r--r-- | arch/x86/entry/vdso/Makefile | 4 | ||||
-rw-r--r-- | arch/x86/purgatory/Makefile | 2 | ||||
-rw-r--r-- | arch/x86/realmode/rm/Makefile | 1 |
17 files changed, 8 insertions, 22 deletions
diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile index 446705a4325a..5be33a2d59a9 100644 --- a/arch/arm/boot/Makefile +++ b/arch/arm/boot/Makefile | |||
@@ -82,7 +82,6 @@ $(obj)/uImage: $(obj)/zImage FORCE | |||
82 | 82 | ||
83 | $(obj)/bootp/bootp: $(obj)/zImage initrd FORCE | 83 | $(obj)/bootp/bootp: $(obj)/zImage initrd FORCE |
84 | $(Q)$(MAKE) $(build)=$(obj)/bootp $@ | 84 | $(Q)$(MAKE) $(build)=$(obj)/bootp $@ |
85 | @: | ||
86 | 85 | ||
87 | $(obj)/bootpImage: $(obj)/bootp/bootp FORCE | 86 | $(obj)/bootpImage: $(obj)/bootp/bootp FORCE |
88 | $(call if_changed,objcopy) | 87 | $(call if_changed,objcopy) |
diff --git a/arch/arm/boot/bootp/Makefile b/arch/arm/boot/bootp/Makefile index 5761f0039133..5e4acd253b30 100644 --- a/arch/arm/boot/bootp/Makefile +++ b/arch/arm/boot/bootp/Makefile | |||
@@ -17,7 +17,6 @@ targets := bootp init.o kernel.o initrd.o | |||
17 | # Note that bootp.lds picks up kernel.o and initrd.o | 17 | # Note that bootp.lds picks up kernel.o and initrd.o |
18 | $(obj)/bootp: $(src)/bootp.lds $(addprefix $(obj)/,init.o kernel.o initrd.o) FORCE | 18 | $(obj)/bootp: $(src)/bootp.lds $(addprefix $(obj)/,init.o kernel.o initrd.o) FORCE |
19 | $(call if_changed,ld) | 19 | $(call if_changed,ld) |
20 | @: | ||
21 | 20 | ||
22 | # kernel.o and initrd.o includes a binary image using | 21 | # kernel.o and initrd.o includes a binary image using |
23 | # .incbin, a dependency which is not tracked automatically | 22 | # .incbin, a dependency which is not tracked automatically |
@@ -26,4 +25,4 @@ $(obj)/kernel.o: arch/arm/boot/zImage FORCE | |||
26 | 25 | ||
27 | $(obj)/initrd.o: $(INITRD) FORCE | 26 | $(obj)/initrd.o: $(INITRD) FORCE |
28 | 27 | ||
29 | PHONY += $(INITRD) FORCE | 28 | PHONY += $(INITRD) |
diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile index 1160434eece0..59a8fa7b8a3b 100644 --- a/arch/arm/vdso/Makefile +++ b/arch/arm/vdso/Makefile | |||
@@ -74,5 +74,5 @@ $(MODLIB)/vdso: FORCE | |||
74 | @mkdir -p $(MODLIB)/vdso | 74 | @mkdir -p $(MODLIB)/vdso |
75 | 75 | ||
76 | PHONY += vdso_install | 76 | PHONY += vdso_install |
77 | vdso_install: $(obj)/vdso.so.dbg $(MODLIB)/vdso FORCE | 77 | vdso_install: $(obj)/vdso.so.dbg $(MODLIB)/vdso |
78 | $(call cmd,vdso_install) | 78 | $(call cmd,vdso_install) |
diff --git a/arch/h8300/boot/compressed/Makefile b/arch/h8300/boot/compressed/Makefile index 7643633f1330..613bfe6f5272 100644 --- a/arch/h8300/boot/compressed/Makefile +++ b/arch/h8300/boot/compressed/Makefile | |||
@@ -23,7 +23,6 @@ LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -estartup -T $(obj)/vmlinux.lds \ | |||
23 | 23 | ||
24 | $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(LIBGCC) FORCE | 24 | $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(LIBGCC) FORCE |
25 | $(call if_changed,ld) | 25 | $(call if_changed,ld) |
26 | @: | ||
27 | 26 | ||
28 | $(obj)/vmlinux.bin: vmlinux FORCE | 27 | $(obj)/vmlinux.bin: vmlinux FORCE |
29 | $(call if_changed,objcopy) | 28 | $(call if_changed,objcopy) |
diff --git a/arch/ia64/Makefile b/arch/ia64/Makefile index 970d0bd99621..c100d780f1eb 100644 --- a/arch/ia64/Makefile +++ b/arch/ia64/Makefile | |||
@@ -95,8 +95,8 @@ define archhelp | |||
95 | echo '* unwcheck - Check vmlinux for invalid unwind info' | 95 | echo '* unwcheck - Check vmlinux for invalid unwind info' |
96 | endef | 96 | endef |
97 | 97 | ||
98 | archprepare: make_nr_irqs_h FORCE | 98 | archprepare: make_nr_irqs_h |
99 | PHONY += make_nr_irqs_h FORCE | 99 | PHONY += make_nr_irqs_h |
100 | 100 | ||
101 | make_nr_irqs_h: FORCE | 101 | make_nr_irqs_h: |
102 | $(Q)$(MAKE) $(build)=arch/ia64/kernel include/generated/nr-irqs.h | 102 | $(Q)$(MAKE) $(build)=arch/ia64/kernel include/generated/nr-irqs.h |
diff --git a/arch/m32r/boot/compressed/Makefile b/arch/m32r/boot/compressed/Makefile index 01729c2979ba..0606a727aab2 100644 --- a/arch/m32r/boot/compressed/Makefile +++ b/arch/m32r/boot/compressed/Makefile | |||
@@ -19,7 +19,6 @@ LDFLAGS_vmlinux := -T | |||
19 | 19 | ||
20 | $(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE | 20 | $(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE |
21 | $(call if_changed,ld) | 21 | $(call if_changed,ld) |
22 | @: | ||
23 | 22 | ||
24 | $(obj)/vmlinux.bin: vmlinux FORCE | 23 | $(obj)/vmlinux.bin: vmlinux FORCE |
25 | $(call if_changed,objcopy) | 24 | $(call if_changed,objcopy) |
diff --git a/arch/mn10300/boot/compressed/Makefile b/arch/mn10300/boot/compressed/Makefile index 08a95e171685..5f56f9de1061 100644 --- a/arch/mn10300/boot/compressed/Makefile +++ b/arch/mn10300/boot/compressed/Makefile | |||
@@ -8,7 +8,6 @@ LDFLAGS_vmlinux := -Ttext $(CONFIG_KERNEL_ZIMAGE_BASE_ADDRESS) -e startup_32 | |||
8 | 8 | ||
9 | $(obj)/vmlinux: $(obj)/head.o $(obj)/misc.o $(obj)/piggy.o FORCE | 9 | $(obj)/vmlinux: $(obj)/head.o $(obj)/misc.o $(obj)/piggy.o FORCE |
10 | $(call if_changed,ld) | 10 | $(call if_changed,ld) |
11 | @: | ||
12 | 11 | ||
13 | $(obj)/vmlinux.bin: vmlinux FORCE | 12 | $(obj)/vmlinux.bin: vmlinux FORCE |
14 | $(call if_changed,objcopy) | 13 | $(call if_changed,objcopy) |
diff --git a/arch/nios2/boot/compressed/Makefile b/arch/nios2/boot/compressed/Makefile index 5b0fb346d888..d5921c9a9726 100644 --- a/arch/nios2/boot/compressed/Makefile +++ b/arch/nios2/boot/compressed/Makefile | |||
@@ -11,7 +11,6 @@ LDFLAGS_vmlinux := -T | |||
11 | 11 | ||
12 | $(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE | 12 | $(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE |
13 | $(call if_changed,ld) | 13 | $(call if_changed,ld) |
14 | @: | ||
15 | 14 | ||
16 | LDFLAGS_piggy.o := -r --format binary --oformat elf32-littlenios2 -T | 15 | LDFLAGS_piggy.o := -r --format binary --oformat elf32-littlenios2 -T |
17 | 16 | ||
diff --git a/arch/s390/boot/compressed/Makefile b/arch/s390/boot/compressed/Makefile index fac6ac9790fa..1dd210347e12 100644 --- a/arch/s390/boot/compressed/Makefile +++ b/arch/s390/boot/compressed/Makefile | |||
@@ -22,7 +22,6 @@ OBJECTS += $(obj)/head.o $(obj)/misc.o $(obj)/piggy.o | |||
22 | LDFLAGS_vmlinux := --oformat $(LD_BFD) -e startup -T | 22 | LDFLAGS_vmlinux := --oformat $(LD_BFD) -e startup -T |
23 | $(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) | 23 | $(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) |
24 | $(call if_changed,ld) | 24 | $(call if_changed,ld) |
25 | @: | ||
26 | 25 | ||
27 | sed-sizes := -e 's/^\([0-9a-fA-F]*\) . \(__bss_start\|_end\)$$/\#define SZ\2 0x\1/p' | 26 | sed-sizes := -e 's/^\([0-9a-fA-F]*\) . \(__bss_start\|_end\)$$/\#define SZ\2 0x\1/p' |
28 | 27 | ||
diff --git a/arch/sh/boot/compressed/Makefile b/arch/sh/boot/compressed/Makefile index 6df826ee7316..c4c47ea9fa94 100644 --- a/arch/sh/boot/compressed/Makefile +++ b/arch/sh/boot/compressed/Makefile | |||
@@ -55,7 +55,6 @@ $(addprefix $(obj)/,$(lib1funcs-y)): $(obj)/%: $(lib1funcs-dir)/% FORCE | |||
55 | 55 | ||
56 | $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(lib1funcs-obj) FORCE | 56 | $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(lib1funcs-obj) FORCE |
57 | $(call if_changed,ld) | 57 | $(call if_changed,ld) |
58 | @: | ||
59 | 58 | ||
60 | $(obj)/vmlinux.bin: vmlinux FORCE | 59 | $(obj)/vmlinux.bin: vmlinux FORCE |
61 | $(call if_changed,objcopy) | 60 | $(call if_changed,objcopy) |
diff --git a/arch/sh/boot/romimage/Makefile b/arch/sh/boot/romimage/Makefile index 2216ee57f251..43c41191de5d 100644 --- a/arch/sh/boot/romimage/Makefile +++ b/arch/sh/boot/romimage/Makefile | |||
@@ -17,7 +17,6 @@ LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(load-y) -e romstart \ | |||
17 | 17 | ||
18 | $(obj)/vmlinux: $(obj)/head.o $(obj-y) $(obj)/piggy.o FORCE | 18 | $(obj)/vmlinux: $(obj)/head.o $(obj-y) $(obj)/piggy.o FORCE |
19 | $(call if_changed,ld) | 19 | $(call if_changed,ld) |
20 | @: | ||
21 | 20 | ||
22 | OBJCOPYFLAGS += -j .empty_zero_page | 21 | OBJCOPYFLAGS += -j .empty_zero_page |
23 | 22 | ||
diff --git a/arch/unicore32/boot/Makefile b/arch/unicore32/boot/Makefile index ec7fb70b412b..828855007b29 100644 --- a/arch/unicore32/boot/Makefile +++ b/arch/unicore32/boot/Makefile | |||
@@ -31,7 +31,7 @@ $(obj)/uImage: $(obj)/zImage FORCE | |||
31 | $(call if_changed,uimage) | 31 | $(call if_changed,uimage) |
32 | @echo ' Image $@ is ready' | 32 | @echo ' Image $@ is ready' |
33 | 33 | ||
34 | PHONY += initrd FORCE | 34 | PHONY += initrd |
35 | initrd: | 35 | initrd: |
36 | @test "$(INITRD)" != "" || \ | 36 | @test "$(INITRD)" != "" || \ |
37 | (echo You must specify INITRD; exit -1) | 37 | (echo You must specify INITRD; exit -1) |
diff --git a/arch/unicore32/boot/compressed/Makefile b/arch/unicore32/boot/compressed/Makefile index 96494fb646f7..9aecdd3ddc48 100644 --- a/arch/unicore32/boot/compressed/Makefile +++ b/arch/unicore32/boot/compressed/Makefile | |||
@@ -54,7 +54,6 @@ LDFLAGS_vmlinux += -T | |||
54 | $(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/head.o $(obj)/piggy.o \ | 54 | $(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/head.o $(obj)/piggy.o \ |
55 | $(obj)/misc.o FORCE | 55 | $(obj)/misc.o FORCE |
56 | $(call if_changed,ld) | 56 | $(call if_changed,ld) |
57 | @: | ||
58 | 57 | ||
59 | # We now have a PIC decompressor implementation. Decompressors running | 58 | # We now have a PIC decompressor implementation. Decompressors running |
60 | # from RAM should not define ZTEXTADDR. Decompressors running directly | 59 | # from RAM should not define ZTEXTADDR. Decompressors running directly |
diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile index cfdd8c3f8af2..f1356889204e 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile | |||
@@ -87,7 +87,6 @@ vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_thunk_$(BITS).o | |||
87 | 87 | ||
88 | $(obj)/vmlinux: $(vmlinux-objs-y) FORCE | 88 | $(obj)/vmlinux: $(vmlinux-objs-y) FORCE |
89 | $(call if_changed,ld) | 89 | $(call if_changed,ld) |
90 | @: | ||
91 | 90 | ||
92 | OBJCOPYFLAGS_vmlinux.bin := -R .comment -S | 91 | OBJCOPYFLAGS_vmlinux.bin := -R .comment -S |
93 | $(obj)/vmlinux.bin: vmlinux FORCE | 92 | $(obj)/vmlinux.bin: vmlinux FORCE |
diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile index 6874da5f67fc..253b72eaade6 100644 --- a/arch/x86/entry/vdso/Makefile +++ b/arch/x86/entry/vdso/Makefile | |||
@@ -193,10 +193,10 @@ vdso_img_insttargets := $(vdso_img_sodbg:%.dbg=install_%) | |||
193 | $(MODLIB)/vdso: FORCE | 193 | $(MODLIB)/vdso: FORCE |
194 | @mkdir -p $(MODLIB)/vdso | 194 | @mkdir -p $(MODLIB)/vdso |
195 | 195 | ||
196 | $(vdso_img_insttargets): install_%: $(obj)/%.dbg $(MODLIB)/vdso FORCE | 196 | $(vdso_img_insttargets): install_%: $(obj)/%.dbg $(MODLIB)/vdso |
197 | $(call cmd,vdso_install) | 197 | $(call cmd,vdso_install) |
198 | 198 | ||
199 | PHONY += vdso_install $(vdso_img_insttargets) | 199 | PHONY += vdso_install $(vdso_img_insttargets) |
200 | vdso_install: $(vdso_img_insttargets) FORCE | 200 | vdso_install: $(vdso_img_insttargets) |
201 | 201 | ||
202 | clean-files := vdso32.so vdso32.so.dbg vdso64* vdso-image-*.c vdsox32.so* | 202 | clean-files := vdso32.so vdso32.so.dbg vdso64* vdso-image-*.c vdsox32.so* |
diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile index 92e3e1d84c1d..12734a96df47 100644 --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile | |||
@@ -26,7 +26,5 @@ quiet_cmd_bin2c = BIN2C $@ | |||
26 | 26 | ||
27 | $(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE | 27 | $(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE |
28 | $(call if_changed,bin2c) | 28 | $(call if_changed,bin2c) |
29 | @: | ||
30 | |||
31 | 29 | ||
32 | obj-$(CONFIG_KEXEC_FILE) += kexec-purgatory.o | 30 | obj-$(CONFIG_KEXEC_FILE) += kexec-purgatory.o |
diff --git a/arch/x86/realmode/rm/Makefile b/arch/x86/realmode/rm/Makefile index b95964610ea7..c556c5ae8de5 100644 --- a/arch/x86/realmode/rm/Makefile +++ b/arch/x86/realmode/rm/Makefile | |||
@@ -59,7 +59,6 @@ OBJCOPYFLAGS_realmode.bin := -O binary | |||
59 | targets += realmode.bin | 59 | targets += realmode.bin |
60 | $(obj)/realmode.bin: $(obj)/realmode.elf $(obj)/realmode.relocs FORCE | 60 | $(obj)/realmode.bin: $(obj)/realmode.elf $(obj)/realmode.relocs FORCE |
61 | $(call if_changed,objcopy) | 61 | $(call if_changed,objcopy) |
62 | @: | ||
63 | 62 | ||
64 | quiet_cmd_relocs = RELOCS $@ | 63 | quiet_cmd_relocs = RELOCS $@ |
65 | cmd_relocs = arch/x86/tools/relocs --realmode $< > $@ | 64 | cmd_relocs = arch/x86/tools/relocs --realmode $< > $@ |