blob: 0bb62e064eea3b019bc12e67359f15abd818d497 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001# arch/h8300/boot/Makefile
2
Yoshinori Sato97a572b2007-05-06 14:50:36 -07003targets := vmlinux.srec vmlinux.bin zImage
4subdir- := compressed
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
6OBJCOPYFLAGS_vmlinux.srec := -Osrec
7OBJCOPYFLAGS_vmlinux.bin := -Obinary
Yoshinori Sato97a572b2007-05-06 14:50:36 -07008OBJCOPYFLAGS_zImage := -O binary -R .note -R .comment -R .stab -R .stabstr -S
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
10$(obj)/vmlinux.srec $(obj)/vmlinux.bin: vmlinux FORCE
11 $(call if_changed,objcopy)
12 @echo ' Kernel: $@ is ready'
13
Yoshinori Sato97a572b2007-05-06 14:50:36 -070014$(obj)/zImage: $(obj)/compressed/vmlinux FORCE
15 $(call if_changed,objcopy)
16 @echo 'Kernel: $@ is ready'
17
18$(obj)/compressed/vmlinux: FORCE
19 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
20
Linus Torvalds1da177e2005-04-16 15:20:36 -070021CLEAN_FILES += arch/$(ARCH)/vmlinux.bin arch/$(ARCH)/vmlinux.srec
Yoshinori Sato97a572b2007-05-06 14:50:36 -070022