4 # Copyright (C) 2001,02,03 NEC Corporation
5 # Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
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
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
20 # r16 is a fixed pointer to the current task
21 CFLAGS
+= -ffixed-r16
-mno-prolog-function
22 CFLAGS
+= -fno-builtin
23 CFLAGS
+= -D__linux__
-DUTS_SYSNAME
=\"uClinux
\"
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
28 LDFLAGS_MODULE
+= --unique
=.gnu.linkonce.this_module
30 LDFLAGS_BLOB
:= -b binary
--oformat elf32-little
31 OBJCOPY_FLAGS_BLOB
:= -I binary
-O elf32-little
-B v850e
34 head-y
:= $(arch_dir
)/kernel
/head.o
$(arch_dir
)/kernel
/init_task.o
35 core-y
+= $(arch_dir
)/kernel
/
36 libs-y
+= $(arch_dir
)/lib
/
39 # Deal with the initial contents of the root device
41 core-y
+= root_fs_image.o
43 # Because the kernel build-system erases all explicit .o build rules, we
44 # have to use an intermediate target to fool it into building for us.
45 # This results in it being built anew each time, but that's alright.
46 root_fs_image.o
: root_fs_image_force
48 root_fs_image_force
: $(ROOT_FS_IMAGE
)
49 $(OBJCOPY
) $(OBJCOPY_FLAGS_BLOB
) --rename-section .data
=.root
,alloc
,load
,readonly
,data
,contents
$< root_fs_image.o
53 prepare
: include/asm-
$(ARCH
)/asm-consts.h
55 # Generate constants from C code for use by asm files
56 arch
/$(ARCH
)/kernel
/asm-consts.s
: include/asm
include/linux
/version.h \
59 include/asm-
$(ARCH
)/asm-consts.h
: arch
/$(ARCH
)/kernel
/asm-consts.s
60 $(call filechk
,gen-asm-offsets
)
62 CLEAN_FILES
+= include/asm-
$(ARCH
)/asm-consts.h \
63 arch
/$(ARCH
)/kernel
/asm-consts.s \