aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@mvista.com>2007-05-31 15:54:39 -0400
committerPaul Mackerras <paulus@samba.org>2007-06-25 02:58:12 -0400
commit941b7adf347dc3e6e2bf87b2af1ef8a42b617a63 (patch)
tree5615eb973c55665abfa6c3e0ffa230c393268b0c
parentdf211c8a478e16232ebbc16e650b19163183fcb6 (diff)
[POWERPC] Remove 'make zImage.dts' feature
Being able to selectively wrap a device tree with the zIimage at build time has been deemed unnecessary, so this removes Makefile support for that feature. Signed-off-by: Mark A. Greer <mgreer@mvista.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--arch/powerpc/Makefile2
-rw-r--r--arch/powerpc/boot/Makefile26
2 files changed, 2 insertions, 26 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index fbafd965dcd2..187a39af3e1c 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -148,7 +148,7 @@ all: $(KBUILD_IMAGE)
148 148
149CPPFLAGS_vmlinux.lds := -Upowerpc 149CPPFLAGS_vmlinux.lds := -Upowerpc
150 150
151BOOT_TARGETS = zImage zImage.initrd zImage.dts zImage.dts_initrd uImage 151BOOT_TARGETS = zImage zImage.initrd uImage
152 152
153PHONY += $(BOOT_TARGETS) 153PHONY += $(BOOT_TARGETS)
154 154
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index c6b8e137d47d..75e1e5681ad8 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -157,27 +157,9 @@ targets += $(image-y) $(initrd-y)
157 157
158$(addprefix $(obj)/, $(initrd-y)): $(obj)/ramdisk.image.gz 158$(addprefix $(obj)/, $(initrd-y)): $(obj)/ramdisk.image.gz
159 159
160dts- := $(patsubst zImage%, zImage.dts%, $(image-n) $(image-))
161dts-y := $(patsubst zImage%, zImage.dts%, $(image-y))
162dts-y := $(filter-out $(image-y), $(dts-y))
163targets += $(image-y) $(dts-y)
164
165dts_initrd- := $(patsubst zImage%, zImage.dts_initrd%, $(image-n) $(image-))
166dts_initrd-y := $(patsubst zImage%, zImage.dts_initrd%, $(image-y))
167dts_initrd-y := $(filter-out $(image-y), $(dts_initrd-y))
168targets += $(image-y) $(dts_initrd-y)
169
170$(addprefix $(obj)/, $(dts_initrd-y)): $(obj)/ramdisk.image.gz
171
172# Don't put the ramdisk on the pattern rule; when its missing make will try 160# Don't put the ramdisk on the pattern rule; when its missing make will try
173# the pattern rule with less dependencies that also matches (even with the 161# the pattern rule with less dependencies that also matches (even with the
174# hard dependency listed). 162# hard dependency listed).
175$(obj)/zImage.dts_initrd.%: vmlinux $(wrapperbits) $(dts) $(obj)/ramdisk.image.gz
176 $(call if_changed,wrap,$*,$(dts),,$(obj)/ramdisk.image.gz)
177
178$(obj)/zImage.dts.%: vmlinux $(wrapperbits) $(dts)
179 $(call if_changed,wrap,$*,$(dts))
180
181$(obj)/zImage.initrd.%: vmlinux $(wrapperbits) 163$(obj)/zImage.initrd.%: vmlinux $(wrapperbits)
182 $(call if_changed,wrap,$*,,,$(obj)/ramdisk.image.gz) 164 $(call if_changed,wrap,$*,,,$(obj)/ramdisk.image.gz)
183 165
@@ -219,18 +201,12 @@ $(obj)/zImage: $(addprefix $(obj)/, $(image-y))
219 @rm -f $@; ln $< $@ 201 @rm -f $@; ln $< $@
220$(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y)) 202$(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y))
221 @rm -f $@; ln $< $@ 203 @rm -f $@; ln $< $@
222$(obj)/zImage.dts: $(addprefix $(obj)/, $(dts-y))
223 @rm -f $@; ln $< $@
224$(obj)/zImage.dts_initrd: $(addprefix $(obj)/, $(dts_initrd-y))
225 @rm -f $@; ln $< $@
226
227 204
228install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y)) 205install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y))
229 sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)" $< 206 sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)" $<
230 207
231# anything not in $(targets) 208# anything not in $(targets)
232clean-files += $(image-) $(initrd-) zImage zImage.initrd cuImage.* \ 209clean-files += $(image-) $(initrd-) zImage zImage.initrd cuImage.* treeImage.*
233 treeImage.* zImage.dts zImage.dts_initrd
234 210
235# clean up files cached by wrapper 211# clean up files cached by wrapper
236clean-kernel := vmlinux.strip vmlinux.bin 212clean-kernel := vmlinux.strip vmlinux.bin