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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [armnommu/] [Makefile] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#
2
# arch/arm/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) 1995, 1996 by Russell King
14
 
15
#CFLAGS += -DDEBUG
16
CFLAGS_DEBUG = -g -gdwarf-2
17
 
18
ifeq ($(CONFIG_CPU_ARM2),y)
19
PROCESSOR        = armo
20
ifeq ($(CONFIG_BINUTILS_NEW),y)
21
CFLAGS_PROC     += -mcpu=arm2
22
else
23
CFLAGS_PROC     += -m2
24
endif
25
endif
26
 
27
ifeq ($(CONFIG_CPU_ARM3),y)
28
PROCESSOR        = armo
29
ifeq ($(CONFIG_BINUTILS_NEW),y)
30
CFLAGS_PROC     += -mcpu=arm3
31
else
32
CFLAGS_PROC     += -m3
33
endif
34
endif
35
 
36
ifeq ($(CONFIG_CPU_ARM6),y)
37
PROCESSOR        = armv
38
ifeq ($(CONFIG_BINUTILS_NEW),y)
39
CFLAGS_PROC     += -mcpu=arm6
40
else
41
CFLAGS_PROC     += -m6
42
endif
43
endif
44
 
45
 
46
ifeq ($(CONFIG_CPU_ARM7),y)
47
PROCESSOR        = armv
48
ifeq ($(CONFIG_BINUTILS_NEW),y)
49
CFLAGS_PROC     += -mcpu=arm7 -fno-strict-aliasing
50
else
51
CFLAGS_PROC     += -m6
52
endif
53
endif
54
 
55
 
56
 
57
ifeq ($(CONFIG_CPU_SA110),y)
58
PROCESSOR        = armv
59
ifeq ($(CONFIG_BINUTILS_NEW),y)
60
CFLAGS_PROC     += -mcpu=strongarm110
61
else
62
CFLAGS_PROC     += -m6
63
endif
64
endif
65
 
66
# Processor Architecture
67
# CFLAGS_PROC - processor dependent CFLAGS
68
# PROCESSOR - processor type
69
# TEXTADDR - Uncompressed kernel link text address
70
# ZTEXTADDR - Compressed kernel link text address
71
# ZRELADDR - Compressed kernel relocating address (point at which uncompressed kernel is loaded).
72
#
73
 
74
ifeq ($(CONFIG_ARCH_TRIO), y)
75
HEAD            := arch/armnommu/kernel/head-arm-aplio.o
76
COMPRESSED_HEAD  = head.o
77
MACHINE = TRIO
78
else
79
HEAD            := arch/armnommu/kernel/head-$(PROCESSOR).o
80
COMPRESSED_HEAD  = head.o
81
endif
82
 
83
ifeq ($(PROCESSOR),armo)
84
ifeq ($(CONFIG_BINUTILS_NEW),y)
85
CFLAGS_PROC     += -mapcs-26 -mshort-load-bytes
86
endif
87
TEXTADDR         = 0x02080000
88
ZTEXTADDR        = 0x01800000
89
ZRELADDR         = 0x02080000
90
endif
91
 
92
ifeq ($(CONFIG_ARCH_A5K),y)
93
MACHINE          = a5k
94
COMPRESSED_EXTRA = $(TOPDIR)/arch/arm/lib/ll_char_wr.o
95
endif
96
 
97
ifeq ($(CONFIG_ARCH_ARC),y)
98
MACHINE          = arc
99
COMPRESSED_EXTRA = $(TOPDIR)/arch/arm/lib/ll_char_wr.o
100
endif
101
 
102
ifeq ($(PROCESSOR),armv)
103
ifeq ($(CONFIG_BINUTILS_NEW),y)
104
CFLAGS_PROC     += -mapcs-32 -mshort-load-bytes
105
endif
106
TEXTADDR         = 0xC0008000
107
endif
108
 
109
ifeq ($(CONFIG_ARCH_TRIO),y)
110
MACHINE          = trio
111
TEXTADDR         = 0x1000
112
endif
113
 
114
ifeq ($(CONFIG_ARCH_RPC),y)
115
MACHINE          = rpc
116
COMPRESSED_EXTRA = $(TOPDIR)/arch/arm/lib/ll_char_wr.o
117
ZTEXTADDR        = 0x10008000
118
ZRELADDR         = 0x10008000
119
endif
120
 
121
ifeq ($(CONFIG_ARCH_EBSA110),y)
122
MACHINE          = ebsa110
123
ZTEXTADDR        = 0x00008000
124
ZRELADDR         = 0x00008000
125
endif
126
 
127
 
128
ifeq ($(CONFIG_ARCH_NEXUSPCI),y)
129
MACHINE          = nexuspci
130
TEXTADDR         = 0xc0000000
131
ZTEXTADDR        = 0x40200000
132
ZRELADDR         = 0x40000000
133
COMPRESSED_EXTRA = $(TOPDIR)/arch/arm/lib/ll_char_wr_scc.o
134
COMPRESSED_HEAD  = head-nexuspci.o
135
endif
136
 
137
OBJDUMP          = $(CROSS_COMPILE)objdump
138
PERL             = perl
139
CPP              = $(CC) -E
140
ARCHCC          := $(word 1,$(CC))
141
GCCLIB          := `$(CC) $(CFLAGS_PROC) --print-libgcc-file-name`
142
HOSTCFLAGS      := $(CFLAGS:-fomit-frame-pointer=)
143
ifeq ($(CONFIG_FRAME_POINTER),y)
144
CFLAGS          := $(CFLAGS_PROC) $(CFLAGS:-fomit-frame-pointer=) -pipe -DNO_MM
145
else
146
CFLAGS          := $(CFLAGS_PROC) $(CFLAGS) -pipe -DNO_MM
147
endif
148
LINKFLAGS        = -Ttext $(TEXTADDR)
149
ZLINKFLAGS       = -Ttext $(ZTEXTADDR)
150
 
151
SUBDIRS         := $(SUBDIRS) arch/armnommu/kernel arch/armnommu/mm arch/armnommu/lib arch/armnommu/drivers
152
ARCHIVES        := arch/armnommu/kernel/kernel.o arch/armnommu/mm/mm.o \
153
                   $(ARCHIVES)
154
LIBS            := arch/armnommu/lib/lib.a $(LIBS) $(GCCLIB)
155
DRIVERS         := arch/armnommu/drivers/block/block.a \
156
                   arch/armnommu/drivers/char/char.a arch/armnommu/drivers/net/net.a
157
 
158
ifeq ($(CONFIG_SCSI),y)
159
DRIVERS         := $(DRIVERS) arch/arm/drivers/scsi/scsi.a
160
endif
161
 
162
ifeq ($(CONFIG_SOUND),y)
163
DRIVERS         := $(DRIVERS) arch/arm/drivers/sound/sound.a
164
endif
165
 
166
symlinks::
167
        $(RM) include/asm-armnommu/arch include/asm-armnommu/proc
168
        (cd include/asm-armnommu; ln -sf arch-$(MACHINE) arch; ln -sf proc-$(PROCESSOR) proc)
169
 
170
mrproper::
171
        rm -f include/asm-arm/arch include/asm-arm/proc
172
        @$(MAKE) -C arch/$(ARCH)/drivers mrproper
173
 
174
arch/armnommu/kernel: dummy
175
        $(MAKE) linuxsubdirs SUBDIRS=arch/armnommu/kernel
176
 
177
arch/armnommu/mm: dummy
178
        $(MAKE) linuxsubdirs SUBDIRS=arch/armnommu/mm
179
 
180
MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
181
 
182
zImage: vmlinux
183
        @$(MAKEBOOT) zImage
184
 
185
zinstall: vmlinux
186
        @$(MAKEBOOT) zinstall
187
 
188
Image: vmlinux
189
        @$(MAKEBOOT) Image
190
 
191
install: vmlinux
192
        @$(MAKEBOOT) install
193
 
194
# My testing targets (that short circuit a few dependencies)
195
#
196
zImg:;  @$(MAKEBOOT) zImage
197
Img:;   @$(MAKEBOOT) Image
198
i:;     @$(MAKEBOOT) install
199
zi:;    @$(MAKEBOOT) zinstall
200
 
201
archclean:
202
        @$(MAKEBOOT) clean
203
        @$(MAKE) -C arch/armnommu/lib clean
204
 
205
archdep:
206
        @$(MAKEBOOT) dep
207
sed -e /^MACHINE..*=/s,= .*,= rpc,;/^PROCESSOR..*=/s,= .*,= armv, linux/arch/armnommu/Makefile.normal

powered by: WebSVN 2.1.0

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