diff options
Diffstat (limited to 'arch/powerpc/boot/Makefile')
-rw-r--r-- | arch/powerpc/boot/Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index ccd757c193e7..5c384aad1184 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -42,8 +42,10 @@ $(addprefix $(obj)/,$(zlib) gunzip_util.o main.o): \ | |||
42 | 42 | ||
43 | src-wlib := string.S crt0.S stdio.c main.c flatdevtree.c flatdevtree_misc.c \ | 43 | src-wlib := string.S crt0.S stdio.c main.c flatdevtree.c flatdevtree_misc.c \ |
44 | ns16550.c serial.c simple_alloc.c div64.S util.S \ | 44 | ns16550.c serial.c simple_alloc.c div64.S util.S \ |
45 | gunzip_util.c elf_util.c $(zlib) devtree.c | 45 | gunzip_util.c elf_util.c $(zlib) devtree.c \ |
46 | src-plat := of.c cuboot-83xx.c cuboot-85xx.c holly.c | 46 | 44x.c ebony.c |
47 | src-plat := of.c cuboot-83xx.c cuboot-85xx.c holly.c \ | ||
48 | cuboot-ebony.c treeboot-ebony.c | ||
47 | src-boot := $(src-wlib) $(src-plat) empty.c | 49 | src-boot := $(src-wlib) $(src-plat) empty.c |
48 | 50 | ||
49 | src-boot := $(addprefix $(obj)/, $(src-boot)) | 51 | src-boot := $(addprefix $(obj)/, $(src-boot)) |
@@ -135,6 +137,7 @@ image-$(CONFIG_DEFAULT_UIMAGE) += uImage | |||
135 | ifneq ($(CONFIG_DEVICE_TREE),"") | 137 | ifneq ($(CONFIG_DEVICE_TREE),"") |
136 | image-$(CONFIG_PPC_83xx) += cuImage.83xx | 138 | image-$(CONFIG_PPC_83xx) += cuImage.83xx |
137 | image-$(CONFIG_PPC_85xx) += cuImage.85xx | 139 | image-$(CONFIG_PPC_85xx) += cuImage.85xx |
140 | image-$(CONFIG_EBONY) += treeImage.ebony cuImage.ebony | ||
138 | endif | 141 | endif |
139 | 142 | ||
140 | # For 32-bit powermacs, build the COFF and miboot images | 143 | # For 32-bit powermacs, build the COFF and miboot images |
@@ -144,7 +147,8 @@ image-$(CONFIG_PPC_PMAC) += zImage.coff zImage.miboot | |||
144 | endif | 147 | endif |
145 | 148 | ||
146 | initrd- := $(patsubst zImage%, zImage.initrd%, $(image-n) $(image-)) | 149 | initrd- := $(patsubst zImage%, zImage.initrd%, $(image-n) $(image-)) |
147 | initrd-y := $(patsubst zImage%, zImage.initrd%, $(image-y)) | 150 | initrd-y := $(patsubst zImage%, zImage.initrd%, \ |
151 | $(patsubst treeImage%, treeImage.initrd%, $(image-y))) | ||
148 | initrd-y := $(filter-out $(image-y), $(initrd-y)) | 152 | initrd-y := $(filter-out $(image-y), $(initrd-y)) |
149 | targets += $(image-y) $(initrd-y) | 153 | targets += $(image-y) $(initrd-y) |
150 | 154 | ||
@@ -181,6 +185,12 @@ dts = $(if $(shell echo $(CONFIG_DEVICE_TREE) | grep '^/'),\ | |||
181 | $(obj)/cuImage.%: vmlinux $(dts) $(wrapperbits) | 185 | $(obj)/cuImage.%: vmlinux $(dts) $(wrapperbits) |
182 | $(call if_changed,wrap,cuboot-$*,$(dts)) | 186 | $(call if_changed,wrap,cuboot-$*,$(dts)) |
183 | 187 | ||
188 | $(obj)/treeImage.%: vmlinux $(dts) $(wrapperbits) | ||
189 | $(call if_changed,wrap,treeboot-$*,$(dts)) | ||
190 | |||
191 | $(obj)/treeImage.initrd.%: vmlinux $(dts) $(wrapperbits) | ||
192 | $(call if_changed,wrap,treeboot-$*,$(dts),,$(obj)/ramdisk.image.gz) | ||
193 | |||
184 | $(obj)/zImage: $(addprefix $(obj)/, $(image-y)) | 194 | $(obj)/zImage: $(addprefix $(obj)/, $(image-y)) |
185 | @rm -f $@; ln $< $@ | 195 | @rm -f $@; ln $< $@ |
186 | $(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y)) | 196 | $(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y)) |
@@ -190,7 +200,8 @@ install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y)) | |||
190 | sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)" $< | 200 | sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)" $< |
191 | 201 | ||
192 | # anything not in $(targets) | 202 | # anything not in $(targets) |
193 | clean-files += $(image-) $(initrd-) zImage zImage.initrd cuImage.* | 203 | clean-files += $(image-) $(initrd-) zImage zImage.initrd cuImage.* \ |
204 | treeImage.* | ||
194 | 205 | ||
195 | # clean up files cached by wrapper | 206 | # clean up files cached by wrapper |
196 | clean-kernel := vmlinux.strip vmlinux.bin | 207 | clean-kernel := vmlinux.strip vmlinux.bin |