aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2014-06-11 07:53:48 -0400
committerMichal Marek <mmarek@suse.cz>2014-06-12 04:07:35 -0400
commit699c659b49b5c7cf601fe454683841df16495c3e (patch)
tree276133927511759e46fac12f7b747fe939c26a6d /arch/powerpc/boot
parent9815594a780404810c2a6280de1a268dcfcb0729 (diff)
powerpc: Avoid circular dependency with zImage.%
The rule to create the final images uses a zImage.% pattern. Unfortunately, this also matches the names of the zImage.*.lds linker scripts, which appear as a dependency of the final images. This somehow worked when $(srctree) used to be an absolute path, but now the pattern matches too much. List only the images from $(image-y) as the target of the rule, to avoid the circular dependency. Reported-and-tested-by: Mike Qiu <qiudayu@linux.vnet.ibm.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r--arch/powerpc/boot/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index a1f8c7f1ec60..ae6403708971 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -315,8 +315,8 @@ $(addprefix $(obj)/, $(initrd-y)): $(obj)/ramdisk.image.gz
315$(obj)/zImage.initrd.%: vmlinux $(wrapperbits) 315$(obj)/zImage.initrd.%: vmlinux $(wrapperbits)
316 $(call if_changed,wrap,$*,,,$(obj)/ramdisk.image.gz) 316 $(call if_changed,wrap,$*,,,$(obj)/ramdisk.image.gz)
317 317
318$(obj)/zImage.%: vmlinux $(wrapperbits) 318$(addprefix $(obj)/, $(sort $(filter zImage.%, $(image-y)))): vmlinux $(wrapperbits)
319 $(call if_changed,wrap,$*) 319 $(call if_changed,wrap,$(subst $(obj)/zImage.,,$@))
320 320
321# dtbImage% - a dtbImage is a zImage with an embedded device tree blob 321# dtbImage% - a dtbImage is a zImage with an embedded device tree blob
322$(obj)/dtbImage.initrd.%: vmlinux $(wrapperbits) $(obj)/%.dtb 322$(obj)/dtbImage.initrd.%: vmlinux $(wrapperbits) $(obj)/%.dtb