Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Milton Miller and committed by
Paul Mackerras
5d7960ff 235fd835

+4 -4
+4 -4
arch/powerpc/boot/Makefile
··· 76 76 @cp $< $@ 77 77 78 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 81 quiet_cmd_bootcc = BOOTCC $@ 82 82 cmd_bootcc = $(CROSS32CC) -Wp,-MD,$(depfile) $(BOOTCFLAGS) -c -o $@ $< ··· 177 177 image-$(CONFIG_PPC_PMAC) += zImage.coff zImage.miboot 178 178 endif 179 179 180 + initrd- := $(patsubst zImage%, zImage.initrd%, $(image-n) $(image-)) 180 181 initrd-y := $(patsubst zImage%, zImage.initrd%, $(image-y)) 181 182 targets += $(image-y) $(initrd-y) 182 183 ··· 189 188 install: $(CONFIGURE) $(image-y) 190 189 sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)" $< 191 190 192 - clean-files += $(addprefix $(objtree)/, $(obj-boot) vmlinux.strip.gz) 193 - clean-files += $(addprefix $(objtree)/, $(obj-boot) vmlinux.bin.gz) 194 - clean-files += $(image-) 191 + clean-files += $(addprefix $(objtree)/, vmlinux.strip.gz vmlinux.bin.gz) 192 + clean-files += $(image-) $(initrd-) zImage zImage.initrd