Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | # arch/h8300/boot/Makefile |
2 | ||
97a572b3 YS |
3 | targets := vmlinux.srec vmlinux.bin zImage |
4 | subdir- := compressed | |
1da177e4 LT |
5 | |
6 | OBJCOPYFLAGS_vmlinux.srec := -Osrec | |
7 | OBJCOPYFLAGS_vmlinux.bin := -Obinary | |
97a572b3 | 8 | OBJCOPYFLAGS_zImage := -O binary -R .note -R .comment -R .stab -R .stabstr -S |
1da177e4 LT |
9 | |
10 | $(obj)/vmlinux.srec $(obj)/vmlinux.bin: vmlinux FORCE | |
11 | $(call if_changed,objcopy) | |
12 | @echo ' Kernel: $@ is ready' | |
13 | ||
97a572b3 YS |
14 | $(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 | ||
1da177e4 | 21 | CLEAN_FILES += arch/$(ARCH)/vmlinux.bin arch/$(ARCH)/vmlinux.srec |
97a572b3 | 22 |