blob: 532e7ef1edb6229405496e85dbd5cb3f12301f07 [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
Olaf Heringf13487c2005-07-13 01:11:41 -07009# two make processes may write to vmlinux.gz at the same time with make -j
10quiet_cmd_mygzip = GZIP $@
11cmd_mygzip = gzip -f -9 < $< > $@.$$$$ && mv $@.$$$$ $@
12
13
Linus Torvalds1da177e2005-04-16 15:20:36 -070014OBJCOPYFLAGS_vmlinux.bin := -O binary
15$(obj)/vmlinux.bin: vmlinux FORCE
16 $(call if_changed,objcopy)
17
18$(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
Olaf Heringf13487c2005-07-13 01:11:41 -070019 $(call if_changed,mygzip)
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
21quiet_cmd_uimage = UIMAGE $@
22 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A ppc -O linux -T kernel \
23 -C gzip -a 00000000 -e 00000000 -n 'Linux-$(KERNELRELEASE)' \
24 -d $< $@
25
26targets += uImage
27$(obj)/uImage: $(obj)/vmlinux.gz
Sam Ravnborgb3d9ae42005-04-30 16:51:42 -070028 $(Q)rm -f $@
Linus Torvalds1da177e2005-04-16 15:20:36 -070029 $(call if_changed,uimage)
Kumar Gala94b9f462005-05-28 15:52:05 -070030 @echo -n ' Image: $@ '
31 @if [ -f $@ ]; then echo 'is ready' ; else echo 'not made'; fi
Linus Torvalds1da177e2005-04-16 15:20:36 -070032
33# Files generated that shall be removed upon make clean
34clean-files := sImage vmapus vmlinux* miboot* zImage* uImage