/spare/repo/netdev-2.6 branch 'master'
[deliverable/linux.git] / arch / ppc / boot / images / Makefile
CommitLineData
1da177e4
LT
1#
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
f13487c6
OH
9# 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
1da177e4
LT
14OBJCOPYFLAGS_vmlinux.bin := -O binary
15$(obj)/vmlinux.bin: vmlinux FORCE
16 $(call if_changed,objcopy)
17
18$(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
f13487c6 19 $(call if_changed,mygzip)
1da177e4
LT
20
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
b3d9ae4b 28 $(Q)rm -f $@
1da177e4 29 $(call if_changed,uimage)
94b9f46d
KG
30 @echo -n ' Image: $@ '
31 @if [ -f $@ ]; then echo 'is ready' ; else echo 'not made'; fi
1da177e4
LT
32
33# Files generated that shall be removed upon make clean
34clean-files := sImage vmapus vmlinux* miboot* zImage* uImage
This page took 0.058762 seconds and 5 git commands to generate.