diff options
Diffstat (limited to 'arch/powerpc/boot/Makefile')
-rw-r--r-- | arch/powerpc/boot/Makefile | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 1aded8f759d0..5ba50c673390 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -40,6 +40,7 @@ $(obj)/ebony.o: BOOTCFLAGS += -mcpu=405 | |||
40 | $(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=405 | 40 | $(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=405 |
41 | $(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=405 | 41 | $(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=405 |
42 | $(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405 | 42 | $(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405 |
43 | $(obj)/virtex405-head.o: BOOTCFLAGS += -mcpu=405 | ||
43 | 44 | ||
44 | 45 | ||
45 | zlib := inffast.c inflate.c inftrees.c | 46 | zlib := inffast.c inflate.c inftrees.c |
@@ -64,7 +65,8 @@ src-plat := of.c cuboot-52xx.c cuboot-824x.c cuboot-83xx.c cuboot-85xx.c holly.c | |||
64 | cuboot-bamboo.c cuboot-mpc7448hpc2.c cuboot-taishan.c \ | 65 | cuboot-bamboo.c cuboot-mpc7448hpc2.c cuboot-taishan.c \ |
65 | fixed-head.S ep88xc.c ep405.c \ | 66 | fixed-head.S ep88xc.c ep405.c \ |
66 | cuboot-katmai.c cuboot-rainier.c redboot-8xx.c ep8248e.c \ | 67 | cuboot-katmai.c cuboot-rainier.c redboot-8xx.c ep8248e.c \ |
67 | cuboot-warp.c cuboot-85xx-cpm2.c | 68 | cuboot-warp.c cuboot-85xx-cpm2.c cuboot-yosemite.c simpleboot.c \ |
69 | virtex405-head.S | ||
68 | src-boot := $(src-wlib) $(src-plat) empty.c | 70 | src-boot := $(src-wlib) $(src-plat) empty.c |
69 | 71 | ||
70 | src-boot := $(addprefix $(obj)/, $(src-boot)) | 72 | src-boot := $(addprefix $(obj)/, $(src-boot)) |
@@ -192,7 +194,7 @@ image-$(CONFIG_PPC_CHRP) += zImage.chrp | |||
192 | image-$(CONFIG_PPC_EFIKA) += zImage.chrp | 194 | image-$(CONFIG_PPC_EFIKA) += zImage.chrp |
193 | image-$(CONFIG_PPC_PMAC) += zImage.pmac | 195 | image-$(CONFIG_PPC_PMAC) += zImage.pmac |
194 | image-$(CONFIG_PPC_HOLLY) += zImage.holly | 196 | image-$(CONFIG_PPC_HOLLY) += zImage.holly |
195 | image-$(CONFIG_PPC_PRPMC2800) += zImage.prpmc2800 | 197 | image-$(CONFIG_PPC_PRPMC2800) += dtbImage.prpmc2800 |
196 | image-$(CONFIG_PPC_ISERIES) += zImage.iseries | 198 | image-$(CONFIG_PPC_ISERIES) += zImage.iseries |
197 | image-$(CONFIG_DEFAULT_UIMAGE) += uImage | 199 | image-$(CONFIG_DEFAULT_UIMAGE) += uImage |
198 | 200 | ||
@@ -216,6 +218,7 @@ image-$(CONFIG_RAINIER) += cuImage.rainier | |||
216 | image-$(CONFIG_TAISHAN) += cuImage.taishan | 218 | image-$(CONFIG_TAISHAN) += cuImage.taishan |
217 | image-$(CONFIG_KATMAI) += cuImage.katmai | 219 | image-$(CONFIG_KATMAI) += cuImage.katmai |
218 | image-$(CONFIG_WARP) += cuImage.warp | 220 | image-$(CONFIG_WARP) += cuImage.warp |
221 | image-$(CONFIG_YOSEMITE) += cuImage.yosemite | ||
219 | 222 | ||
220 | # Board ports in arch/powerpc/platform/8xx/Kconfig | 223 | # Board ports in arch/powerpc/platform/8xx/Kconfig |
221 | image-$(CONFIG_PPC_MPC86XADS) += cuImage.mpc866ads | 224 | image-$(CONFIG_PPC_MPC86XADS) += cuImage.mpc866ads |
@@ -255,6 +258,7 @@ image-$(CONFIG_TQM8555) += cuImage.tqm8555 | |||
255 | image-$(CONFIG_TQM8560) += cuImage.tqm8560 | 258 | image-$(CONFIG_TQM8560) += cuImage.tqm8560 |
256 | image-$(CONFIG_SBC8548) += cuImage.sbc8548 | 259 | image-$(CONFIG_SBC8548) += cuImage.sbc8548 |
257 | image-$(CONFIG_SBC8560) += cuImage.sbc8560 | 260 | image-$(CONFIG_SBC8560) += cuImage.sbc8560 |
261 | image-$(CONFIG_KSI8560) += cuImage.ksi8560 | ||
258 | 262 | ||
259 | # Board ports in arch/powerpc/platform/embedded6xx/Kconfig | 263 | # Board ports in arch/powerpc/platform/embedded6xx/Kconfig |
260 | image-$(CONFIG_STORCENTER) += cuImage.storcenter | 264 | image-$(CONFIG_STORCENTER) += cuImage.storcenter |
@@ -285,11 +289,11 @@ $(obj)/zImage.%: vmlinux $(wrapperbits) | |||
285 | $(call if_changed,wrap,$*) | 289 | $(call if_changed,wrap,$*) |
286 | 290 | ||
287 | # dtbImage% - a dtbImage is a zImage with an embedded device tree blob | 291 | # dtbImage% - a dtbImage is a zImage with an embedded device tree blob |
288 | $(obj)/dtbImage.initrd.%: vmlinux $(wrapperbits) $(dtstree)/%.dts | 292 | $(obj)/dtbImage.initrd.%: vmlinux $(wrapperbits) $(obj)/%.dtb |
289 | $(call if_changed,wrap,$*,$(dtstree)/$*.dts,,$(obj)/ramdisk.image.gz) | 293 | $(call if_changed,wrap,$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) |
290 | 294 | ||
291 | $(obj)/dtbImage.%: vmlinux $(wrapperbits) $(dtstree)/%.dts | 295 | $(obj)/dtbImage.%: vmlinux $(wrapperbits) $(obj)/%.dtb |
292 | $(call if_changed,wrap,$*,$(dtstree)/$*.dts) | 296 | $(call if_changed,wrap,$*,,$(obj)/$*.dtb) |
293 | 297 | ||
294 | # This cannot be in the root of $(src) as the zImage rule always adds a $(obj) | 298 | # This cannot be in the root of $(src) as the zImage rule always adds a $(obj) |
295 | # prefix | 299 | # prefix |
@@ -302,14 +306,24 @@ $(obj)/zImage.iseries: vmlinux | |||
302 | $(obj)/uImage: vmlinux $(wrapperbits) | 306 | $(obj)/uImage: vmlinux $(wrapperbits) |
303 | $(call if_changed,wrap,uboot) | 307 | $(call if_changed,wrap,uboot) |
304 | 308 | ||
305 | $(obj)/cuImage.%: vmlinux $(dtstree)/%.dts $(wrapperbits) | 309 | $(obj)/cuImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) |
306 | $(call if_changed,wrap,cuboot-$*,$(dtstree)/$*.dts) | 310 | $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb) |
307 | 311 | ||
308 | $(obj)/treeImage.initrd.%: vmlinux $(dtstree)/%.dts $(wrapperbits) | 312 | $(obj)/simpleImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) |
309 | $(call if_changed,wrap,treeboot-$*,$(dtstree)/$*.dts,,$(obj)/ramdisk.image.gz) | 313 | $(call if_changed,wrap,simpleboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) |
310 | 314 | ||
311 | $(obj)/treeImage.%: vmlinux $(dtstree)/%.dts $(wrapperbits) | 315 | $(obj)/simpleImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) |
312 | $(call if_changed,wrap,treeboot-$*,$(dtstree)/$*.dts) | 316 | $(call if_changed,wrap,simpleboot-$*,,$(obj)/$*.dtb) |
317 | |||
318 | $(obj)/treeImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) | ||
319 | $(call if_changed,wrap,treeboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) | ||
320 | |||
321 | $(obj)/treeImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) | ||
322 | $(call if_changed,wrap,treeboot-$*,,$(obj)/$*.dtb) | ||
323 | |||
324 | # Rule to build device tree blobs | ||
325 | $(obj)/%.dtb: $(dtstree)/%.dts $(obj)/dtc | ||
326 | $(obj)/dtc -O dtb -o $(obj)/$*.dtb -b 0 $(DTS_FLAGS) $(dtstree)/$*.dts | ||
313 | 327 | ||
314 | # If there isn't a platform selected then just strip the vmlinux. | 328 | # If there isn't a platform selected then just strip the vmlinux. |
315 | ifeq (,$(image-y)) | 329 | ifeq (,$(image-y)) |
@@ -326,7 +340,7 @@ install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y)) | |||
326 | 340 | ||
327 | # anything not in $(targets) | 341 | # anything not in $(targets) |
328 | clean-files += $(image-) $(initrd-) zImage zImage.initrd cuImage.* treeImage.* \ | 342 | clean-files += $(image-) $(initrd-) zImage zImage.initrd cuImage.* treeImage.* \ |
329 | otheros.bld | 343 | otheros.bld *.dtb |
330 | 344 | ||
331 | # clean up files cached by wrapper | 345 | # clean up files cached by wrapper |
332 | clean-kernel := vmlinux.strip vmlinux.bin | 346 | clean-kernel := vmlinux.strip vmlinux.bin |