diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/boot/Makefile | 30 |
2 files changed, 31 insertions, 1 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index a13eb575f834..5f80e58e5cb3 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -151,7 +151,7 @@ CPPFLAGS_vmlinux.lds := -Upowerpc | |||
151 | # All the instructions talk about "make bzImage". | 151 | # All the instructions talk about "make bzImage". |
152 | bzImage: zImage | 152 | bzImage: zImage |
153 | 153 | ||
154 | BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd vmlinux.sm | 154 | BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd vmlinux.sm uImage |
155 | 155 | ||
156 | .PHONY: $(BOOT_TARGETS) | 156 | .PHONY: $(BOOT_TARGETS) |
157 | 157 | ||
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 9770f587af73..dfc7eacd9bdb 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -143,6 +143,36 @@ $(obj)/zImage.initrd: $(obj)/zImage.initrd.vmode $(obj)/addnote | |||
143 | @cp -f $< $@ | 143 | @cp -f $< $@ |
144 | $(call if_changed,addnote) | 144 | $(call if_changed,addnote) |
145 | 145 | ||
146 | #----------------------------------------------------------- | ||
147 | # build u-boot images | ||
148 | #----------------------------------------------------------- | ||
149 | quiet_cmd_mygzip = GZIP $@ | ||
150 | cmd_mygzip = gzip -f -9 < $< > $@.$$$$ && mv $@.$$$$ $@ | ||
151 | |||
152 | quiet_cmd_objbin = OBJCOPY $@ | ||
153 | cmd_objbin = $(OBJCOPY) -O binary $< $@ | ||
154 | |||
155 | quiet_cmd_uimage = UIMAGE $@ | ||
156 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A ppc -O linux -T kernel \ | ||
157 | -C gzip -a 00000000 -e 00000000 -n 'Linux-$(KERNELRELEASE)' \ | ||
158 | -d $< $@ | ||
159 | |||
160 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
161 | targets += uImage | ||
162 | extra-y += vmlinux.bin vmlinux.gz | ||
163 | |||
164 | $(obj)/vmlinux.bin: vmlinux FORCE | ||
165 | $(call if_changed,objbin) | ||
166 | |||
167 | $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE | ||
168 | $(call if_changed,mygzip) | ||
169 | |||
170 | $(obj)/uImage: $(obj)/vmlinux.gz | ||
171 | $(Q)rm -f $@ | ||
172 | $(call if_changed,uimage) | ||
173 | @echo -n ' Image: $@ ' | ||
174 | @if [ -f $@ ]; then echo 'is ready' ; else echo 'not made'; fi | ||
175 | |||
146 | install: $(CONFIGURE) $(BOOTIMAGE) | 176 | install: $(CONFIGURE) $(BOOTIMAGE) |
147 | sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)" "$(BOOTIMAGE)" | 177 | sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)" "$(BOOTIMAGE)" |
148 | 178 | ||