[PATCH] Fix Make warning about zImage multiple dependencies
Jimi Xenidis
jimix at watson.ibm.com
Sat Sep 17 03:21:50 EST 2005
The patch from
http://patchwork.ozlabs.org/linuxppc64/patch?id=2022
Causes a make warning if multiple CONFIG_PPC_* cause zImage to be in
the dependency line more than once.
The following patch fixes it in a way that avoids complex if's, tho it
may be a little obscure :)
Signed-off-by: Jimi Xenidis <jimix at watson.ibm.com>
--- a/arch/ppc64/Makefile Wed Sep 14 15:48:20 2005
+++ b/arch/ppc64/Makefile Fri Sep 16 13:08:46 2005
@@ -89,11 +89,14 @@
boot := arch/ppc64/boot
-boottargets-$(CONFIG_PPC_PSERIES) += zImage zImage.initrd
+use-zImage-$(CONFIG_PPC_PSERIES) = y
+use-zImage-$(CONFIG_PPC_MAPLE) = y
+use-zImage-$(CONFIG_PPC_BPA) = y
+
+boottargets-$(use-zImage-y) += zImage zImage.initrd
boottargets-$(CONFIG_PPC_PMAC) += zImage.vmode zImage.initrd.vmode
-boottargets-$(CONFIG_PPC_MAPLE) += zImage zImage.initrd
boottargets-$(CONFIG_PPC_ISERIES) += vmlinux.sminitrd vmlinux.initrd vmlinux.sm
-boottargets-$(CONFIG_PPC_BPA) += zImage zImage.initrd
+
$(boottargets-y): vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
More information about the Linuxppc64-dev
mailing list