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 | |
| 14 | MKIMAGE := $(srctree)/scripts/mkuboot.sh |
| 15 | |
| 16 | targets := Image zImage uImage |
| 17 | |
| 18 | $(obj)/Image: vmlinux FORCE |
| 19 | $(call if_changed,objcopy) |
| 20 | @echo ' Kernel: $@ is ready' |
| 21 | |
| 22 | $(obj)/compressed/vmlinux: $(obj)/Image FORCE |
| 23 | $(Q)$(MAKE) $(build)=$(obj)/compressed $@ |
| 24 | |
| 25 | $(obj)/zImage: $(obj)/compressed/vmlinux FORCE |
| 26 | $(call if_changed,objcopy) |
| 27 | @echo ' Kernel: $@ is ready' |
| 28 | |
| 29 | quiet_cmd_uimage = UIMAGE $@ |
| 30 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A unicore -O linux -T kernel \ |
| 31 | -C none -a $(LOADADDR) -e $(STARTADDR) \ |
| 32 | -n 'Linux-$(KERNELRELEASE)' -d $< $@ |
| 33 | |
| 34 | $(obj)/uImage: LOADADDR=0x0 |
| 35 | |
| 36 | $(obj)/uImage: STARTADDR=$(LOADADDR) |
| 37 | |
| 38 | $(obj)/uImage: $(obj)/zImage FORCE |
| 39 | $(call if_changed,uimage) |
| 40 | @echo ' Image $@ is ready' |
| 41 | |
| 42 | PHONY += initrd FORCE |
| 43 | initrd: |
| 44 | @test "$(INITRD)" != "" || \ |
| 45 | (echo You must specify INITRD; exit -1) |
| 46 | |
| 47 | subdir- := compressed |