aboutsummaryrefslogtreecommitdiffstats
path: root/arch/v850/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/v850/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/v850/Makefile')
-rw-r--r--arch/v850/Makefile63
1 files changed, 63 insertions, 0 deletions
diff --git a/arch/v850/Makefile b/arch/v850/Makefile
new file mode 100644
index 000000000000..6edaed4a310e
--- /dev/null
+++ b/arch/v850/Makefile
@@ -0,0 +1,63 @@
1#
2# arch/v850/Makefile
3#
4# Copyright (C) 2001,02,03 NEC Corporation
5# Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
6#
7# This file is included by the global makefile so that you can add your own
8# architecture-specific flags and dependencies. Remember to do have actions
9# for "archclean" and "archdep" for cleaning up and making dependencies for
10# this architecture
11#
12# This file is subject to the terms and conditions of the GNU General Public
13# License. See the file "COPYING" in the main directory of this archive
14# for more details.
15#
16
17arch_dir = arch/v850
18
19CFLAGS += -mv850e
20# r16 is a fixed pointer to the current task
21CFLAGS += -ffixed-r16 -mno-prolog-function
22CFLAGS += -fno-builtin
23CFLAGS += -D__linux__ -DUTS_SYSNAME=\"uClinux\"
24
25# This prevents the linker from consolidating the .gnu.linkonce.this_module
26# section into .text (which the v850 default linker script for -r does for
27# some reason)
28LDFLAGS_MODULE += --unique=.gnu.linkonce.this_module
29
30OBJCOPY_FLAGS_BLOB := -I binary -O elf32-little -B v850e
31
32
33head-y := $(arch_dir)/kernel/head.o $(arch_dir)/kernel/init_task.o
34core-y += $(arch_dir)/kernel/
35libs-y += $(arch_dir)/lib/
36
37
38# Deal with the initial contents of the root device
39ifdef ROOT_FS_IMAGE
40core-y += root_fs_image.o
41
42# Because the kernel build-system erases all explicit .o build rules, we
43# have to use an intermediate target to fool it into building for us.
44# This results in it being built anew each time, but that's alright.
45root_fs_image.o: root_fs_image_force
46
47root_fs_image_force: $(ROOT_FS_IMAGE)
48 $(OBJCOPY) $(OBJCOPY_FLAGS_BLOB) --rename-section .data=.root,alloc,load,readonly,data,contents $< root_fs_image.o
49endif
50
51
52prepare: include/asm-$(ARCH)/asm-consts.h
53
54# Generate constants from C code for use by asm files
55arch/$(ARCH)/kernel/asm-consts.s: include/asm include/linux/version.h \
56 include/config/MARKER
57
58include/asm-$(ARCH)/asm-consts.h: arch/$(ARCH)/kernel/asm-consts.s
59 $(call filechk,gen-asm-offsets)
60
61CLEAN_FILES += include/asm-$(ARCH)/asm-consts.h \
62 arch/$(ARCH)/kernel/asm-consts.s \
63 root_fs_image.o