2005-04-17 06:20:36 +08:00
|
|
|
# arch/h8300/boot/Makefile
|
|
|
|
|
2007-05-07 05:50:36 +08:00
|
|
|
targets := vmlinux.srec vmlinux.bin zImage
|
|
|
|
subdir- := compressed
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
OBJCOPYFLAGS_vmlinux.srec := -Osrec
|
|
|
|
OBJCOPYFLAGS_vmlinux.bin := -Obinary
|
2007-05-07 05:50:36 +08:00
|
|
|
OBJCOPYFLAGS_zImage := -O binary -R .note -R .comment -R .stab -R .stabstr -S
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
$(obj)/vmlinux.srec $(obj)/vmlinux.bin: vmlinux FORCE
|
|
|
|
$(call if_changed,objcopy)
|
|
|
|
@echo ' Kernel: $@ is ready'
|
|
|
|
|
2007-05-07 05:50:36 +08: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-17 06:20:36 +08:00
|
|
|
CLEAN_FILES += arch/$(ARCH)/vmlinux.bin arch/$(ARCH)/vmlinux.srec
|
2007-05-07 05:50:36 +08:00
|
|
|
|