diff options
Diffstat (limited to 'arch/powerpc/boot/Makefile')
-rw-r--r-- | arch/powerpc/boot/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 928b88a55d05..d602b7c8ff88 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -129,7 +129,7 @@ image-$(CONFIG_PPC_CELLEB) += zImage.pseries | |||
129 | image-$(CONFIG_PPC_CHRP) += zImage.chrp | 129 | image-$(CONFIG_PPC_CHRP) += zImage.chrp |
130 | image-$(CONFIG_PPC_EFIKA) += zImage.chrp | 130 | image-$(CONFIG_PPC_EFIKA) += zImage.chrp |
131 | image-$(CONFIG_PPC_PMAC) += zImage.pmac | 131 | image-$(CONFIG_PPC_PMAC) += zImage.pmac |
132 | image-$(CONFIG_DEFAULT_UIMAGE) += uImage | 132 | image-$(CONFIG_DEFAULT_UIMAGE) += uImage cuImage |
133 | 133 | ||
134 | # For 32-bit powermacs, build the COFF and miboot images | 134 | # For 32-bit powermacs, build the COFF and miboot images |
135 | # as well as the ELF images. | 135 | # as well as the ELF images. |
@@ -162,6 +162,14 @@ $(obj)/zImage.initrd.ps3: vmlinux | |||
162 | $(obj)/uImage: vmlinux $(wrapperbits) | 162 | $(obj)/uImage: vmlinux $(wrapperbits) |
163 | $(call if_changed,wrap,uboot) | 163 | $(call if_changed,wrap,uboot) |
164 | 164 | ||
165 | cuboot-plat-y += unknown-platform | ||
166 | |||
167 | dts = $(if $(shell echo $(CONFIG_) | grep '^/'),\ | ||
168 | ,$(srctree)/$(src)/dts/)$(CONFIG_DEVICE_TREE) | ||
169 | |||
170 | $(obj)/cuImage: vmlinux $(wrapperbits) | ||
171 | $(call if_changed,wrap,cuboot-$(word 1,$(cuboot-plat-y)),$(dts)) | ||
172 | |||
165 | $(obj)/zImage: $(addprefix $(obj)/, $(image-y)) | 173 | $(obj)/zImage: $(addprefix $(obj)/, $(image-y)) |
166 | @rm -f $@; ln $< $@ | 174 | @rm -f $@; ln $< $@ |
167 | $(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y)) | 175 | $(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y)) |
@@ -171,7 +179,8 @@ install: $(CONFIGURE) $(image-y) | |||
171 | sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)" $< | 179 | sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)" $< |
172 | 180 | ||
173 | # anything not in $(targets) | 181 | # anything not in $(targets) |
174 | clean-files += $(image-) $(initrd-) zImage zImage.initrd | 182 | clean-files += $(image-) $(initrd-) zImage zImage.initrd \ |
183 | cuImage.elf cuImage.bin.gz | ||
175 | 184 | ||
176 | # clean up files cached by wrapper | 185 | # clean up files cached by wrapper |
177 | clean-kernel := vmlinux.strip vmlinux.bin | 186 | clean-kernel := vmlinux.strip vmlinux.bin |