2005-04-16 22:20:36 +00:00
|
|
|
# arch/h8300/boot/Makefile
|
|
|
|
|
2007-05-06 21:50:36 +00:00
|
|
|
targets := vmlinux.srec vmlinux.bin zImage
|
|
|
|
subdir- := compressed
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
OBJCOPYFLAGS_vmlinux.srec := -Osrec
|
|
|
|
OBJCOPYFLAGS_vmlinux.bin := -Obinary
|
2007-05-06 21:50:36 +00:00
|
|
|
OBJCOPYFLAGS_zImage := -O binary -R .note -R .comment -R .stab -R .stabstr -S
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
$(obj)/vmlinux.srec $(obj)/vmlinux.bin: vmlinux FORCE
|
|
|
|
$(call if_changed,objcopy)
|
|
|
|
@echo ' Kernel: $@ is ready'
|
|
|
|
|
2007-05-06 21:50:36 +00:00
|
|
|
$(obj)/zImage: $(obj)/compressed/vmlinux FORCE
|
|
|
|
$(call if_changed,objcopy)
|
|
|
|
@echo 'Kernel: $@ is ready'
|
|
|
|
|
|
|
|
$(obj)/compressed/vmlinux: FORCE
|
|
|
|
$(Q)$(MAKE) $(build)=$(obj)/compressed $@
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
CLEAN_FILES += arch/$(ARCH)/vmlinux.bin arch/$(ARCH)/vmlinux.srec
|
2007-05-06 21:50:36 +00:00
|
|
|
|