blob: 20c83a53caf35d494066ba1c01ff9771a86d0c74 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
Jesper Nilsson87f5a7f2007-11-30 16:08:34 +01002# arch/cris/arch-v10/boot/Makefile
Linus Torvalds1da177e2005-04-16 15:20:36 -07003#
4
Jesper Nilsson87f5a7f2007-11-30 16:08:34 +01005OBJCOPY = objcopy-cris
6OBJCOPYFLAGS = -O binary --remove-section=.bss
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
Jesper Nilsson87f5a7f2007-11-30 16:08:34 +01008subdir- := compressed rescue
9targets := Image
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
Jesper Nilsson87f5a7f2007-11-30 16:08:34 +010011$(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'