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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [i386/] [Makefile] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1623 jcastillo
#
2
# i386/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 by Linus Torvalds
14
#
15
 
16
#
17
# Set these to indicate how to link it..
18
#
19
# -zmagic:   (aout, old GCC-2.5.2)
20
#
21
# ZLINKFLAGS   = -Ttext 0x1000
22
# BZLINKFLAGS  = -Ttext 0x100000     # (for big high loaded kernels)
23
# LINKFLAGS    = -Ttext 0x100000
24
#
25
# -qmagic:   (aout)
26
#
27
# ZLINKFLAGS   = -Ttext 0x0xfe0
28
# BZLINKFLAGS  = -Ttext 0xfffe0      # (for big high loaded kernels)
29
# LINKFLAGS    = -Ttext 0xfffe0
30
#
31
 
32
AS86    =$(CROSS_COMPILE)as86 -0 -a
33
AS386   =$(CROSS_COMPILE)as86 -3
34
LD86    =$(CROSS_COMPILE)ld86 -0
35
 
36
ifdef CONFIG_KERNEL_ELF
37
 
38
LD=$(CROSS_COMPILE)ld -m elf_i386
39
CPP=$(CC) -E -D__ELF__
40
OBJDUMP=$(CROSS_COMPILE)objdump
41
OBJDUMP_FLAGS=-k -q
42
ENCAPS=$(CROSS_COMPILE)encaps
43
OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -R .stab -R .stabstr
44
ZLDFLAGS=-e startup_32
45
LDFLAGS=-e stext
46
ZIMAGE_OFFSET=0x1000
47
IMAGE_OFFSET=0x100000
48
ZLINKFLAGS =-Ttext $(ZIMAGE_OFFSET) $(ZLDFLAGS)
49
BZLINKFLAGS =-Ttext $(IMAGE_OFFSET) $(ZLDFLAGS)
50
LINKFLAGS =-Ttext $(IMAGE_OFFSET) $(LDFLAGS)
51
 
52
else
53
 
54
#
55
# -qmagic (we need to remove the 32 byte header for bootup purposes)
56
#
57
ZLINKFLAGS =-qmagic -Ttext 0xfe0
58
BZLINKFLAGS =-qmagic -Ttext 0xfffe0
59
LINKFLAGS =-qmagic -Ttext 0xfffe0
60
endif
61
 
62
CFLAGS := $(CFLAGS) -pipe
63
 
64
ifdef CONFIG_M386
65
CFLAGS := $(CFLAGS) -m386 -DCPU=386
66
endif
67
 
68
ifdef CONFIG_M486
69
CFLAGS := $(CFLAGS) -m486 -DCPU=486
70
endif
71
 
72
ifdef CONFIG_M586
73
CFLAGS := $(CFLAGS) -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586
74
endif
75
 
76
ifdef CONFIG_M686
77
CFLAGS := $(CFLAGS) -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686
78
endif
79
 
80
ifdef SMP
81
CFLAGS := $(CFLAGS) -D__SMP__
82
endif
83
 
84
HEAD := arch/i386/kernel/head.o
85
 
86
SUBDIRS := $(SUBDIRS) arch/i386/kernel arch/i386/mm arch/i386/lib
87
ARCHIVES := arch/i386/kernel/kernel.o arch/i386/mm/mm.o $(ARCHIVES)
88
LIBS := $(TOPDIR)/arch/i386/lib/lib.a $(LIBS) $(TOPDIR)/arch/i386/lib/lib.a
89
 
90
ifdef CONFIG_MATH_EMULATION
91
SUBDIRS := $(SUBDIRS) arch/i386/math-emu
92
DRIVERS := $(DRIVERS) arch/i386/math-emu/math.a
93
endif
94
 
95
arch/i386/kernel: dummy
96
        $(MAKE) linuxsubdirs SUBDIRS=arch/i386/kernel
97
 
98
arch/i386/mm: dummy
99
        $(MAKE) linuxsubdirs SUBDIRS=arch/i386/mm
100
 
101
MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
102
 
103
zImage: vmlinux
104
        @$(MAKEBOOT) zImage
105
 
106
bzImage: vmlinux
107
        @$(MAKEBOOT) bzImage
108
 
109
compressed: zImage
110
 
111
zlilo: vmlinux
112
        @$(MAKEBOOT) BOOTIMAGE=zImage zlilo
113
 
114
bzlilo: vmlinux
115
        @$(MAKEBOOT) BOOTIMAGE=bzImage zlilo
116
 
117
zdisk: vmlinux
118
        @$(MAKEBOOT) BOOTIMAGE=zImage zdisk
119
 
120
bzdisk: vmlinux
121
        @$(MAKEBOOT) BOOTIMAGE=bzImage zdisk
122
 
123
install: vmlinux
124
        @$(MAKEBOOT) install
125
 
126
archclean:
127
        @$(MAKEBOOT) clean
128
        $(MAKE) -C arch/$(ARCH)/kernel clean
129
 
130
archdep:
131
        @$(MAKEBOOT) dep

powered by: WebSVN 2.1.0

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