diff options
author | Milton Miller <miltonm@bga.com> | 2007-03-21 11:03:10 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-26 01:11:20 -0400 |
commit | 5d7960ffb8157acdf92223e32d34da504578aca0 (patch) | |
tree | 169807c724369cc0c6be88954b9f350cbb452051 /arch/powerpc/boot/Makefile | |
parent | 235fd8354528a7dabb3b6050ca4d201549a6f858 (diff) |
[POWERPC] boot: clean rule fixes
Now that obj-boot is in targets, we can remove (twice) it from clean-files.
zImage.initrd was missing, move zImage nearer where its used, and place
zImage.initrd next to it. Remove non-ported zImage.sandpoint, and add
auto-generation of unconfigured zImage.initrd* like image-.
Signed-off-by: Milton Miller <miltonm@bga.com>
--
Testing: did a few builds and cleans
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/Makefile')
-rw-r--r-- | arch/powerpc/boot/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 113af8877d60..1dc7f2bb2b96 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -76,7 +76,7 @@ $(obj)/zImage.lds $(obj)/zImage.coff.lds: $(obj)/%: $(srctree)/$(src)/%.S | |||
76 | @cp $< $@ | 76 | @cp $< $@ |
77 | 77 | ||
78 | clean-files := $(zlib) $(zlibheader) $(zliblinuxheader) \ | 78 | clean-files := $(zlib) $(zlibheader) $(zliblinuxheader) \ |
79 | empty.c zImage zImage.coff.lds zImage.lds zImage.sandpoint | 79 | empty.c zImage.coff.lds zImage.lds |
80 | 80 | ||
81 | quiet_cmd_bootcc = BOOTCC $@ | 81 | quiet_cmd_bootcc = BOOTCC $@ |
82 | cmd_bootcc = $(CROSS32CC) -Wp,-MD,$(depfile) $(BOOTCFLAGS) -c -o $@ $< | 82 | cmd_bootcc = $(CROSS32CC) -Wp,-MD,$(depfile) $(BOOTCFLAGS) -c -o $@ $< |
@@ -177,6 +177,7 @@ ifeq ($(CONFIG_PPC32),y) | |||
177 | image-$(CONFIG_PPC_PMAC) += zImage.coff zImage.miboot | 177 | image-$(CONFIG_PPC_PMAC) += zImage.coff zImage.miboot |
178 | endif | 178 | endif |
179 | 179 | ||
180 | initrd- := $(patsubst zImage%, zImage.initrd%, $(image-n) $(image-)) | ||
180 | initrd-y := $(patsubst zImage%, zImage.initrd%, $(image-y)) | 181 | initrd-y := $(patsubst zImage%, zImage.initrd%, $(image-y)) |
181 | targets += $(image-y) $(initrd-y) | 182 | targets += $(image-y) $(initrd-y) |
182 | 183 | ||
@@ -188,6 +189,5 @@ $(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y)) | |||
188 | install: $(CONFIGURE) $(image-y) | 189 | install: $(CONFIGURE) $(image-y) |
189 | sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)" $< | 190 | sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)" $< |
190 | 191 | ||
191 | clean-files += $(addprefix $(objtree)/, $(obj-boot) vmlinux.strip.gz) | 192 | clean-files += $(addprefix $(objtree)/, vmlinux.strip.gz vmlinux.bin.gz) |
192 | clean-files += $(addprefix $(objtree)/, $(obj-boot) vmlinux.bin.gz) | 193 | clean-files += $(image-) $(initrd-) zImage zImage.initrd |
193 | clean-files += $(image-) | ||