diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/sh64/Makefile |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/sh64/Makefile')
-rw-r--r-- | arch/sh64/Makefile | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/arch/sh64/Makefile b/arch/sh64/Makefile new file mode 100644 index 000000000000..b4fd8e13fea9 --- /dev/null +++ b/arch/sh64/Makefile | |||
@@ -0,0 +1,116 @@ | |||
1 | # | ||
2 | # This file is subject to the terms and conditions of the GNU General Public | ||
3 | # License. See the file "COPYING" in the main directory of this archive | ||
4 | # for more details. | ||
5 | # | ||
6 | # Copyright (C) 2000, 2001 Paolo Alberelli | ||
7 | # Copyright (C) 2003, 2004 Paul Mundt | ||
8 | # | ||
9 | # This file is included by the global makefile so that you can add your own | ||
10 | # architecture-specific flags and dependencies. Remember to do have actions | ||
11 | # for "archclean" and "archdep" for cleaning up and making dependencies for | ||
12 | # this architecture | ||
13 | # | ||
14 | |||
15 | cpu-y := -mb | ||
16 | cpu-$(CONFIG_LITTLE_ENDIAN) := -ml | ||
17 | |||
18 | cpu-$(CONFIG_CPU_SH5) += -m5-32media-nofpu | ||
19 | |||
20 | ifdef CONFIG_LITTLE_ENDIAN | ||
21 | LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' | ||
22 | LDFLAGS += -EL -mshlelf32_linux | ||
23 | else | ||
24 | LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64+4' | ||
25 | LDFLAGS += -EB -mshelf32_linux | ||
26 | endif | ||
27 | |||
28 | # No requirements for endianess support from AFLAGS, 'as' always run through gcc | ||
29 | AFLAGS += -m5 -isa=sh64 -traditional | ||
30 | CFLAGS += $(cpu-y) | ||
31 | |||
32 | LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_CACHED_MEMORY_OFFSET) \ | ||
33 | --defsym phys_stext_shmedia=phys_stext+1 \ | ||
34 | -e phys_stext_shmedia | ||
35 | |||
36 | OBJCOPYFLAGS := -O binary -R .note -R .comment -R .stab -R .stabstr -S | ||
37 | |||
38 | # | ||
39 | # arch/sh64/defconfig never had any hope of being | ||
40 | # frequently updated, so use one that does | ||
41 | # | ||
42 | KBUILD_DEFCONFIG := cayman_defconfig | ||
43 | |||
44 | ifdef LOADADDR | ||
45 | LINKFLAGS += -Ttext $(word 1,$(LOADADDR)) | ||
46 | endif | ||
47 | |||
48 | machine-$(CONFIG_SH_CAYMAN) := cayman | ||
49 | machine-$(CONFIG_SH_SIMULATOR) := sim | ||
50 | machine-$(CONFIG_SH_HARP) := harp | ||
51 | machine-$(CONFIG_SH_ROMRAM) := romram | ||
52 | |||
53 | head-y := arch/$(ARCH)/kernel/head.o arch/$(ARCH)/kernel/init_task.o | ||
54 | |||
55 | core-y += arch/sh64/kernel/ arch/sh64/mm/ | ||
56 | |||
57 | ifneq ($(machine-y),) | ||
58 | core-y += arch/sh64/mach-$(machine-y)/ | ||
59 | endif | ||
60 | |||
61 | LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name) | ||
62 | libs-y += arch/$(ARCH)/lib/ $(LIBGCC) | ||
63 | |||
64 | drivers-$(CONFIG_OPROFILE) += arch/sh64/oprofile/ | ||
65 | |||
66 | boot := arch/$(ARCH)/boot | ||
67 | |||
68 | zImage: vmlinux | ||
69 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ | ||
70 | |||
71 | compressed: zImage | ||
72 | |||
73 | archclean: | ||
74 | $(Q)$(MAKE) $(clean)=$(boot) | ||
75 | |||
76 | prepare: include/asm-$(ARCH)/asm-offsets.h arch/$(ARCH)/lib/syscalltab.h | ||
77 | |||
78 | include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \ | ||
79 | include/asm include/linux/version.h | ||
80 | $(call filechk,gen-asm-offsets) | ||
81 | |||
82 | define filechk_gen-syscalltab | ||
83 | (set -e; \ | ||
84 | echo "/*"; \ | ||
85 | echo " * DO NOT MODIFY."; \ | ||
86 | echo " *"; \ | ||
87 | echo " * This file was generated by arch/$(ARCH)/Makefile"; \ | ||
88 | echo " * Any changes will be reverted at build time."; \ | ||
89 | echo " */"; \ | ||
90 | echo ""; \ | ||
91 | echo "#ifndef __SYSCALLTAB_H"; \ | ||
92 | echo "#define __SYSCALLTAB_H"; \ | ||
93 | echo ""; \ | ||
94 | echo "#include <linux/kernel.h>"; \ | ||
95 | echo ""; \ | ||
96 | echo "struct syscall_info {"; \ | ||
97 | echo " const char *name;"; \ | ||
98 | echo "} syscall_info_table[] = {"; \ | ||
99 | sed -e '/^.*\.long /!d;s// { "/;s/\(\([^/]*\)\/\)\{1\}.*/\2/; \ | ||
100 | s/[ \t]*$$//g;s/$$/" },/;s/\("\)sys_/\1/g'; \ | ||
101 | echo "};"; \ | ||
102 | echo ""; \ | ||
103 | echo "#define NUM_SYSCALL_INFO_ENTRIES ARRAY_SIZE(syscall_info_table)"; \ | ||
104 | echo ""; \ | ||
105 | echo "#endif /* __SYSCALLTAB_H */" ) | ||
106 | endef | ||
107 | |||
108 | arch/$(ARCH)/lib/syscalltab.h: arch/sh64/kernel/syscalls.S | ||
109 | $(call filechk,gen-syscalltab) | ||
110 | |||
111 | CLEAN_FILES += include/asm-$(ARCH)/asm-offsets.h arch/$(ARCH)/lib/syscalltab.h | ||
112 | |||
113 | define archhelp | ||
114 | @echo ' zImage - Compressed kernel image (arch/sh64/boot/zImage)' | ||
115 | endef | ||
116 | |||