diff options
author | GuanXuetao <gxt@mprc.pku.edu.cn> | 2011-01-15 05:23:31 -0500 |
---|---|---|
committer | GuanXuetao <gxt@mprc.pku.edu.cn> | 2011-03-16 21:19:14 -0400 |
commit | 70fac51feaf2ca50c84e102e2a2699eb19ef24bd (patch) | |
tree | a4ca6efdd40b063a4dd7ccb587d15f0f0535653a /arch/unicore32/boot/Makefile | |
parent | 96cf5185a95e0b304596fe19edcf8dfcd5c10699 (diff) |
unicore32 additional architecture files: boot process
This patch implements booting process, including uncompression process.
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/unicore32/boot/Makefile')
-rw-r--r-- | arch/unicore32/boot/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/arch/unicore32/boot/Makefile b/arch/unicore32/boot/Makefile new file mode 100644 index 00000000000..79e5f88845d --- /dev/null +++ b/arch/unicore32/boot/Makefile | |||
@@ -0,0 +1,47 @@ | |||
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 | ||