blob: ec7fb70b412bdcaffcedb8653d5ca3d89ca15173 [file] [log] [blame]
GuanXuetao70fac512011-01-15 18:23:31 +08001#
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
GuanXuetao70fac512011-01-15 18:23:31 +080014targets := 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 Warrene3393642012-03-16 15:03:55 -060027UIMAGE_ARCH = unicore
28UIMAGE_LOADADDR = 0x0
GuanXuetao70fac512011-01-15 18:23:31 +080029
30$(obj)/uImage: $(obj)/zImage FORCE
31 $(call if_changed,uimage)
32 @echo ' Image $@ is ready'
33
34PHONY += initrd FORCE
35initrd:
36 @test "$(INITRD)" != "" || \
37 (echo You must specify INITRD; exit -1)
38
39subdir- := compressed