OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [mips/] [Makefile] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1625 jcastillo
#
2
# arch/mips/Makefile
3
#
4
# This file is included by the global makefile so that you can add your own
5
# architecture-specific flags and dependencies. Remember to do have actions
6
# for "archclean" and "archdep" for cleaning up and making dependencies for
7
# this architecture
8
#
9
# This file is subject to the terms and conditions of the GNU General Public
10
# License.  See the file "COPYING" in the main directory of this archive
11
# for more details.
12
#
13
# Copyright (C) 1994, 1995 by Ralf Baechle
14
#
15
 
16
ifdef CONFIG_CPU_LITTLE_ENDIAN
17
prefix          = mipsel-
18
oformat         = a.out-mips-little-linux
19
else
20
prefix          = mips-
21
oformat         = a.out-mips-big-linux
22
endif
23
 
24
ifdef CONFIG_EXTRA_ELF_COMPILER
25
prefix          := $(prefix)linuxelf-
26
else
27
prefix          := $(prefix)linux-
28
endif
29
 
30
AS              = $(prefix)as
31
LD              = $(prefix)ld
32
LINKFLAGS       = -N -Ttext 0x80000000
33
#LINKFLAGS      = -oformat=$(oformat) -N -Ttext 0x80000000
34
#HOSTCC         = gcc
35
CC              = $(prefix)gcc -D__KERNEL__ -I$(TOPDIR)/include
36
CPP             = $(CC) -E $(CFLAGS)
37
AR              = $(prefix)ar
38
RANLIB          = $(prefix)ranlib
39
OBJCOPY         = $(prefix)objcopy
40
OBJDUMP         = $(prefix)objdump
41
STRIP           = $(prefix)strip
42
NM              = $(prefix)nm
43
 
44
#
45
# The new ELF GCC uses -G0 -mabicalls -fpic as default.  We don't need PIC
46
# code in the kernel since it only slows down the whole thing.  For the
47
# old GCC these options are just the defaults.  At some point we might
48
# make use of global pointer optimizations.
49
#
50
ifdef CONFIG_ELF_KERNEL
51
CFLAGS          := $(CFLAGS) -G0 -mno-abicalls -fno-pic
52
LINKFLAGS       += -T arch/mips/ld.script
53
endif
54
 
55
ifdef CONFIG_REMOTE_DEBUG
56
CFLAGS          := $(CFLAGS) -g
57
endif
58
 
59
ifdef CONFIG_CPU_R3000
60
CFLAGS          := $(CFLAGS) -mcpu=r3000 -mips1
61
#ASFLAGS                := $(ASFLAGS) -mcpu=r3000 -mips1
62
endif
63
ifdef CONFIG_CPU_R6000
64
CFLAGS          := $(CFLAGS) -mcpu=r6000 -mips2
65
#ASFLAGS                := $(ASFLAGS) -mcpu=r6000 -mips2
66
endif
67
ifdef CONFIG_CPU_R4X00
68
CFLAGS          := $(CFLAGS) -D__R4000__ -mcpu=r4400 -mips2
69
#ASFLAGS                := $(ASFLAGS) -mcpu=r4400 -mips2
70
endif
71
ifdef CONFIG_CPU_R4600
72
CFLAGS          := $(CFLAGS) -D__R4000__ -mcpu=r4600 -mips2
73
#ASFLAGS                := $(ASFLAGS) -mcpu=r4600 -mips2
74
endif
75
ifdef CONFIG_CPU_R8000
76
CFLAGS          := $(CFLAGS) -D__R4000__ -mcpu=r8000 -mips2
77
#ASFLAGS                := $(ASFLAGS) -mcpu=r8000 -mips2
78
endif
79
ifdef CONFIG_CPU_R10000
80
CFLAGS          := $(CFLAGS) -D__R4000__ -mcpu=r8000 -mips2
81
#ASFLAGS                := $(ASFLAGS) -mcpu=r8000 -mips2
82
endif
83
 
84
CFLAGS          := $(CFLAGS) -pipe
85
 
86
HEAD := arch/mips/kernel/head.o
87
 
88
SUBDIRS := $(SUBDIRS) arch/mips/kernel arch/mips/mm arch/mips/lib
89
ARCHIVES := arch/mips/kernel/kernel.o arch/mips/mm/mm.o $(ARCHIVES)
90
LIBS := arch/mips/lib/lib.a $(LIBS) arch/mips/lib/lib.a
91
 
92
MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
93
 
94
zImage: vmlinux
95
        @$(MAKEBOOT) zImage
96
 
97
compressed: zImage
98
 
99
zdisk: vmlinux
100
        @$(MAKEBOOT) zdisk
101
 
102
archclean:
103
        @$(MAKEBOOT) clean
104
        $(MAKE) -C arch/$(ARCH)/kernel clean
105
 
106
archdep:
107
        @$(MAKEBOOT) dep

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.