Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
Jesper Nilsson | 87f5a7f | 2007-11-30 16:08:34 +0100 | [diff] [blame^] | 2 | # arch/cris/arch-v10/boot/Makefile |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | # |
| 4 | |
Jesper Nilsson | 87f5a7f | 2007-11-30 16:08:34 +0100 | [diff] [blame^] | 5 | OBJCOPY = objcopy-cris |
| 6 | OBJCOPYFLAGS = -O binary --remove-section=.bss |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
Jesper Nilsson | 87f5a7f | 2007-11-30 16:08:34 +0100 | [diff] [blame^] | 8 | subdir- := compressed rescue |
| 9 | targets := Image |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | |
Jesper Nilsson | 87f5a7f | 2007-11-30 16:08:34 +0100 | [diff] [blame^] | 11 | $(obj)/Image: vmlinux FORCE |
| 12 | $(call if_changed,objcopy) |
| 13 | @echo ' Kernel: $@ is ready' |
| 14 | |
| 15 | $(obj)/compressed/vmlinux: $(obj)/Image FORCE |
| 16 | $(Q)$(MAKE) $(build)=$(obj)/compressed $@ |
| 17 | $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin |
| 18 | |
| 19 | $(obj)/zImage: $(obj)/compressed/vmlinux |
| 20 | @cp $< $@ |
| 21 | @echo ' Kernel: $@ is ready' |