Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
Jesper Nilsson | 66ab3a7 | 2009-04-21 11:44:57 +0200 | [diff] [blame] | 2 | # arch/cris/boot/Makefile |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | # |
| 4 | |
Jesper Nilsson | 66ab3a7 | 2009-04-21 11:44:57 +0200 | [diff] [blame] | 5 | objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment |
Jesper Nilsson | d717809 | 2010-08-03 18:27:23 +0200 | [diff] [blame] | 6 | objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss --remove-section=.note.gnu.build-id |
Jesper Nilsson | 66ab3a7 | 2009-04-21 11:44:57 +0200 | [diff] [blame] | 7 | |
| 8 | OBJCOPYFLAGS = -O binary $(objcopyflags-y) |
| 9 | |
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 | subdir- := compressed rescue |
| 12 | targets := Image |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Jesper Nilsson | 87f5a7f | 2007-11-30 16:08:34 +0100 | [diff] [blame] | 14 | $(obj)/Image: vmlinux FORCE |
| 15 | $(call if_changed,objcopy) |
| 16 | @echo ' Kernel: $@ is ready' |
| 17 | |
| 18 | $(obj)/compressed/vmlinux: $(obj)/Image FORCE |
| 19 | $(Q)$(MAKE) $(build)=$(obj)/compressed $@ |
| 20 | $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin |
| 21 | |
| 22 | $(obj)/zImage: $(obj)/compressed/vmlinux |
| 23 | @cp $< $@ |
| 24 | @echo ' Kernel: $@ is ready' |