blob: f850fb0fb5118be47d976291ee028697fbdeb688 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# This dir holds all of the images for PPC machines.
3# Tom Rini January 2001
4
5MKIMAGE := $(srctree)/scripts/mkuboot.sh
6
7extra-y := vmlinux.bin vmlinux.gz
8
9OBJCOPYFLAGS_vmlinux.bin := -O binary
10$(obj)/vmlinux.bin: vmlinux FORCE
11 $(call if_changed,objcopy)
12
13$(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
14 $(call if_changed,gzip)
15
16quiet_cmd_uimage = UIMAGE $@
17 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A ppc -O linux -T kernel \
18 -C gzip -a 00000000 -e 00000000 -n 'Linux-$(KERNELRELEASE)' \
19 -d $< $@
20
21targets += uImage
22$(obj)/uImage: $(obj)/vmlinux.gz
Sam Ravnborgb3d9ae42005-04-30 16:51:42 -070023 $(Q)rm -f $@
Linus Torvalds1da177e2005-04-16 15:20:36 -070024 $(call if_changed,uimage)
Sam Ravnborgb3d9ae42005-04-30 16:51:42 -070025 @echo ' Image: $@' $(if $(wildcard $@),'is ready','not made')
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
27# Files generated that shall be removed upon make clean
28clean-files := sImage vmapus vmlinux* miboot* zImage* uImage