Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sam Ravnborg
Date: Monday, August 2, 2010 - 11:28 am

On Mon, Aug 02, 2010 at 11:51:11AM +0300, Thomas Backlund wrote:

This is in the category "intended breakage".
We had a similar issue in the top-level Makefile which Paul (IIRC)
helped me to fix long time ago.

To fix popwerpc I suggest something along these lines.
[Note: I did not test it - please do so.

	Sam

[PATCH] 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>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 77cfe7a..ad88b21 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -163,9 +163,11 @@ drivers-$(CONFIG_OPROFILE)	+= arch/powerpc/oprofile/
 # Default to zImage, override when needed
 all: zImage
 
-BOOT_TARGETS = zImage zImage.initrd uImage zImage% dtbImage% treeImage.% cuImage.% simpleImage.%
+# With make 3.82 we cannot mix normal and wildcard targets
+BOOT_TARGETS1 := zImage zImage.initrd uImaged
+BOOT_TARGETS2 := zImage% dtbImage% treeImage.% cuImage.% simpleImage.%
 
-PHONY += $(BOOT_TARGETS)
+PHONY += $(BOOT_TARGETS1) $(BOOT_TARGETS2)
 
 boot := arch/$(ARCH)/boot
 
@@ -180,7 +182,9 @@ relocs_check: arch/powerpc/relocs_check.pl vmlinux
 zImage: relocs_check
 endif
 
-$(BOOT_TARGETS): vmlinux
+$(BOOT_TARGETS1): vmlinux
+	$(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
+$(BOOT_TARGETS2): vmlinux
 	$(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
 
 bootwrapper_install %.dtb:
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Linux 2.6.35, Linus Torvalds, (Sun Aug 1, 4:52 pm)
Re: Linux 2.6.35, Stephen Rothwell, (Sun Aug 1, 5:32 pm)
Re: Linux 2.6.35, Dave Chinner, (Sun Aug 1, 7:33 pm)
Re: Linux 2.6.35, Linus Torvalds, (Sun Aug 1, 7:50 pm)
Re: Linux 2.6.35, Dave Chinner, (Sun Aug 1, 10:58 pm)
Re: Linux 2.6.35, Nick Piggin, (Mon Aug 2, 12:55 am)
Re: Linux 2.6.35, Nick Piggin, (Mon Aug 2, 1:14 am)
Re: Linux 2.6.35, Christoph Hellwig, (Mon Aug 2, 1:24 am)
Re: Linux 2.6.35, KOSAKI Motohiro, (Mon Aug 2, 1:46 am)
Re: Linux 2.6.35, Stephen Rothwell, (Mon Aug 2, 1:52 am)
Re: Linux 2.6.35, Christoph Hellwig, (Mon Aug 2, 2:05 am)
Re: Linux 2.6.35, Nick Piggin, (Mon Aug 2, 2:51 am)
Re: Linux 2.6.35, Nick Piggin, (Mon Aug 2, 3:07 am)
Re: make 3.82 fails on powerpc defconfig update [was: Linu ..., Sam Ravnborg, (Mon Aug 2, 11:28 am)
Re: Linux 2.6.35, Andi Kleen, (Tue Aug 3, 1:18 am)
Re: Linux 2.6.35, Nick Piggin, (Tue Aug 3, 2:28 am)
Re: Linux 2.6.35, Andi Kleen, (Tue Aug 3, 2:49 am)
Re: Linux 2.6.35, Henrique de Moraes H ..., (Tue Aug 3, 8:05 am)