| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # This dir holds all of the images for PPC machines. |
| 3 | # Tom Rini January 2001 |
| 4 | |
| 5 | MKIMAGE := $(srctree)/scripts/mkuboot.sh |
| 6 | |
| 7 | extra-y := vmlinux.bin vmlinux.gz |
| 8 | |
| Olaf Hering | f13487c | 2005-07-13 01:11:41 -0700 | [diff] [blame] | 9 | # two make processes may write to vmlinux.gz at the same time with make -j |
| 10 | quiet_cmd_mygzip = GZIP $@ |
| 11 | cmd_mygzip = gzip -f -9 < $< > $@.$$$$ && mv $@.$$$$ $@ |
| 12 | |
| 13 | |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | OBJCOPYFLAGS_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 Hering | f13487c | 2005-07-13 01:11:41 -0700 | [diff] [blame] | 19 | $(call if_changed,mygzip) |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
| 21 | quiet_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 | |
| 26 | targets += uImage |
| 27 | $(obj)/uImage: $(obj)/vmlinux.gz |
| Sam Ravnborg | b3d9ae4 | 2005-04-30 16:51:42 -0700 | [diff] [blame] | 28 | $(Q)rm -f $@ |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | $(call if_changed,uimage) |
| Kumar Gala | 94b9f46 | 2005-05-28 15:52:05 -0700 | [diff] [blame] | 30 | @echo -n ' Image: $@ ' |
| 31 | @if [ -f $@ ]; then echo 'is ready' ; else echo 'not made'; fi |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | |
| 33 | # Files generated that shall be removed upon make clean |
| 34 | clean-files := sImage vmapus vmlinux* miboot* zImage* uImage |