aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2010-08-02 16:47:48 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-08-09 00:14:05 -0400
commite32e78c5ee8aadef020fbaecbe6fb741ed9029fd (patch)
tree6d19c54e2d9fcdbb453b19fbe5891641ddd70d92 /arch
parent6e49c1a407c8af8d779a24fd2428857991514a7b (diff)
powerpc: fix build with make 3.82
Thomas Backlund reported that the powerpc build broke with make 3.82. It failed with the following message: arch/powerpc/Makefile:183: *** mixed implicit and normal rules. Stop. The fix is to avoid mixing non-wildcard and wildcard targets. Reported-by: Thomas Backlund <tmb@mandriva.org> Tested-by: Thomas Backlund <tmb@mandriva.org> Cc: Michal Marek <mmarek@suse.cz> Cc: stable <stable@kernel.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 5d42f5eae70f..e3ea151c9597 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -163,9 +163,11 @@ drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/
163# Default to zImage, override when needed 163# Default to zImage, override when needed
164all: zImage 164all: zImage
165 165
166BOOT_TARGETS = zImage zImage.initrd uImage zImage% dtbImage% treeImage.% cuImage.% simpleImage.% 166# With make 3.82 we cannot mix normal and wildcard targets
167BOOT_TARGETS1 := zImage zImage.initrd uImaged
168BOOT_TARGETS2 := zImage% dtbImage% treeImage.% cuImage.% simpleImage.%
167 169
168PHONY += $(BOOT_TARGETS) 170PHONY += $(BOOT_TARGETS1) $(BOOT_TARGETS2)
169 171
170boot := arch/$(ARCH)/boot 172boot := arch/$(ARCH)/boot
171 173
@@ -180,10 +182,16 @@ relocs_check: arch/powerpc/relocs_check.pl vmlinux
180zImage: relocs_check 182zImage: relocs_check
181endif 183endif
182 184
183$(BOOT_TARGETS): vmlinux 185$(BOOT_TARGETS1): vmlinux
186 $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
187$(BOOT_TARGETS2): vmlinux
188 $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
189
190
191bootwrapper_install:
184 $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) 192 $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
185 193
186bootwrapper_install %.dtb: 194%.dtb:
187 $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) 195 $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
188 196
189define archhelp 197define archhelp