blob: 6e3b509fd7fce7dadc5469197bd4c48d5eee0759 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
Jesper Nilsson66ab3a72009-04-21 11:44:57 +02002# arch/cris/boot/Makefile
Linus Torvalds1da177e2005-04-16 15:20:36 -07003#
4
Jesper Nilsson66ab3a72009-04-21 11:44:57 +02005objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
Jesper Nilssond7178092010-08-03 18:27:23 +02006objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss --remove-section=.note.gnu.build-id
Jesper Nilsson66ab3a72009-04-21 11:44:57 +02007
8OBJCOPYFLAGS = -O binary $(objcopyflags-y)
9
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
Jesper Nilsson87f5a7f2007-11-30 16:08:34 +010011subdir- := compressed rescue
12targets := Image
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Jesper Nilsson87f5a7f2007-11-30 16:08:34 +010014$(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'