GuanXuetao | 70fac51 | 2011-01-15 18:23:31 +0800 | [diff] [blame] | 1 | # |
| 2 | # arch/unicore32/boot/Makefile |
| 3 | # |
| 4 | # This file is included by the global makefile so that you can add your own |
| 5 | # architecture-specific flags and dependencies. |
| 6 | # |
| 7 | # This file is subject to the terms and conditions of the GNU General Public |
| 8 | # License. See the file "COPYING" in the main directory of this archive |
| 9 | # for more details. |
| 10 | # |
| 11 | # Copyright (C) 2001~2010 GUAN Xue-tao |
| 12 | # |
| 13 | |
GuanXuetao | 70fac51 | 2011-01-15 18:23:31 +0800 | [diff] [blame] | 14 | targets := Image zImage uImage |
| 15 | |
| 16 | $(obj)/Image: vmlinux FORCE |
| 17 | $(call if_changed,objcopy) |
| 18 | @echo ' Kernel: $@ is ready' |
| 19 | |
| 20 | $(obj)/compressed/vmlinux: $(obj)/Image FORCE |
| 21 | $(Q)$(MAKE) $(build)=$(obj)/compressed $@ |
| 22 | |
| 23 | $(obj)/zImage: $(obj)/compressed/vmlinux FORCE |
| 24 | $(call if_changed,objcopy) |
| 25 | @echo ' Kernel: $@ is ready' |
| 26 | |
Stephen Warren | e339364 | 2012-03-16 15:03:55 -0600 | [diff] [blame] | 27 | UIMAGE_ARCH = unicore |
| 28 | UIMAGE_LOADADDR = 0x0 |
GuanXuetao | 70fac51 | 2011-01-15 18:23:31 +0800 | [diff] [blame] | 29 | |
| 30 | $(obj)/uImage: $(obj)/zImage FORCE |
| 31 | $(call if_changed,uimage) |
| 32 | @echo ' Image $@ is ready' |
| 33 | |
Masahiro Yamada | 1c44b28 | 2016-04-08 11:16:10 +0900 | [diff] [blame] | 34 | PHONY += initrd |
GuanXuetao | 70fac51 | 2011-01-15 18:23:31 +0800 | [diff] [blame] | 35 | initrd: |
| 36 | @test "$(INITRD)" != "" || \ |
| 37 | (echo You must specify INITRD; exit -1) |
| 38 | |
| 39 | subdir- := compressed |