Subversion Repositories HelenOS

Rev

Rev 3865 | Rev 4119 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3865 Rev 3879
Line 27... Line 27...
27
#
27
#
28
 
28
 
29
## Toolchain configuration
29
## Toolchain configuration
30
#
30
#
31
 
31
 
32
ifndef CROSS_PREFIX
-
 
33
	CROSS_PREFIX = /usr/local
-
 
34
endif
-
 
35
 
-
 
36
BFD_NAME = elf64-sparc
32
BFD_NAME = elf64-sparc
37
BFD_ARCH = sparc
33
BFD_ARCH = sparc
38
BFD = binary
34
BFD = binary
39
TARGET = sparc64-linux-gnu
35
TARGET = sparc64-linux-gnu
40
TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64
36
TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64
Line 44... Line 40...
44
 
40
 
45
LFLAGS += -no-check-sections -N
41
LFLAGS += -no-check-sections -N
46
 
42
 
47
DEFS += -D__64_BITS__
43
DEFS += -D__64_BITS__
48
 
44
 
49
## Own configuration directives
-
 
50
#
-
 
51
 
-
 
52
## Compile with page hash table support.
-
 
53
#
-
 
54
 
-
 
55
CONFIG_PAGE_HT = y
-
 
56
DEFS += -DCONFIG_PAGE_HT
-
 
57
 
-
 
58
## Compile with support for address space identifiers.
-
 
59
#
-
 
60
 
-
 
61
CONFIG_ASID = y
-
 
62
CONFIG_ASID_FIFO = y
-
 
63
 
-
 
64
## Compile with support for framebuffer.
-
 
65
#
-
 
66
 
-
 
67
ifeq ($(MACHINE),us)
45
ifeq ($(MACHINE),us)
68
	CONFIG_FB = y
-
 
69
endif
-
 
70
 
-
 
71
## Compile with support for Sun keyboard.
-
 
72
#
-
 
73
 
-
 
74
CONFIG_SUN_KBD = y
-
 
75
 
-
 
76
## Compile with support for OpenFirmware device tree.
-
 
77
#
-
 
78
 
-
 
79
CONFIG_OFW_TREE = y
-
 
80
 
-
 
81
ifeq ($(CONFIG_SMP),y)
-
 
82
	DEFS += -DCONFIG_SMP
-
 
83
endif
-
 
84
 
-
 
85
ifeq ($(CONFIG_SGCN),y)
-
 
86
        DEFS += -DCONFIG_SGCN
-
 
87
endif
-
 
88
 
-
 
89
ifeq ($(MACHINE),us)
-
 
90
    DEFS += -DUS
46
	DEFS += -DUS
91
endif
47
endif
92
 
48
 
93
ifeq ($(MACHINE),us3)
49
ifeq ($(MACHINE),us3)
94
	DEFS += -DUS3
50
	DEFS += -DUS3
95
endif
51
endif
96
 
52
 
97
ARCH_SOURCES = \
53
ARCH_SOURCES = \
98
	arch/$(ARCH)/src/cpu/cpu.c \
54
	arch/$(KARCH)/src/cpu/cpu.c \
99
	arch/$(ARCH)/src/asm.S \
55
	arch/$(KARCH)/src/asm.S \
100
	arch/$(ARCH)/src/panic.S \
56
	arch/$(KARCH)/src/panic.S \
101
	arch/$(ARCH)/src/console.c \
57
	arch/$(KARCH)/src/console.c \
102
	arch/$(ARCH)/src/context.S \
58
	arch/$(KARCH)/src/context.S \
103
	arch/$(ARCH)/src/fpu_context.c \
59
	arch/$(KARCH)/src/fpu_context.c \
104
	arch/$(ARCH)/src/dummy.s \
60
	arch/$(KARCH)/src/dummy.s \
105
	arch/$(ARCH)/src/mm/as.c \
61
	arch/$(KARCH)/src/mm/as.c \
106
	arch/$(ARCH)/src/mm/cache.S \
62
	arch/$(KARCH)/src/mm/cache.S \
107
	arch/$(ARCH)/src/mm/frame.c \
63
	arch/$(KARCH)/src/mm/frame.c \
108
	arch/$(ARCH)/src/mm/page.c \
64
	arch/$(KARCH)/src/mm/page.c \
109
	arch/$(ARCH)/src/mm/tlb.c \
65
	arch/$(KARCH)/src/mm/tlb.c \
110
	arch/$(ARCH)/src/sparc64.c \
66
	arch/$(KARCH)/src/sparc64.c \
111
	arch/$(ARCH)/src/start.S \
67
	arch/$(KARCH)/src/start.S \
112
	arch/$(ARCH)/src/proc/scheduler.c \
68
	arch/$(KARCH)/src/proc/scheduler.c \
113
	arch/$(ARCH)/src/proc/thread.c \
69
	arch/$(KARCH)/src/proc/thread.c \
114
	arch/$(ARCH)/src/trap/mmu.S \
70
	arch/$(KARCH)/src/trap/mmu.S \
115
	arch/$(ARCH)/src/trap/trap_table.S \
71
	arch/$(KARCH)/src/trap/trap_table.S \
116
	arch/$(ARCH)/src/trap/trap.c \
72
	arch/$(KARCH)/src/trap/trap.c \
117
	arch/$(ARCH)/src/trap/exception.c \
73
	arch/$(KARCH)/src/trap/exception.c \
118
	arch/$(ARCH)/src/trap/interrupt.c \
74
	arch/$(KARCH)/src/trap/interrupt.c \
119
	arch/$(ARCH)/src/ddi/ddi.c \
75
	arch/$(KARCH)/src/ddi/ddi.c \
120
	arch/$(ARCH)/src/drivers/tick.c \
76
	arch/$(KARCH)/src/drivers/tick.c \
121
	arch/$(ARCH)/src/drivers/kbd.c \
77
	arch/$(KARCH)/src/drivers/kbd.c \
122
	arch/$(ARCH)/src/drivers/sgcn.c \
78
	arch/$(KARCH)/src/drivers/sgcn.c \
123
	arch/$(ARCH)/src/drivers/pci.c
79
	arch/$(KARCH)/src/drivers/pci.c
124
 
80
 
125
ifeq ($(CONFIG_FB),y)
81
ifeq ($(CONFIG_FB),y)
126
	ARCH_SOURCES += \
82
	ARCH_SOURCES += \
127
		arch/$(ARCH)/src/drivers/scr.c
83
		arch/$(KARCH)/src/drivers/scr.c
128
endif
84
endif
129
 
85
 
130
ifeq ($(CONFIG_SMP),y)
86
ifeq ($(CONFIG_SMP),y)
131
ARCH_SOURCES += \
87
	ARCH_SOURCES += \
132
	arch/$(ARCH)/src/smp/ipi.c \
88
		arch/$(KARCH)/src/smp/ipi.c \
133
	arch/$(ARCH)/src/smp/smp.c
89
		arch/$(KARCH)/src/smp/smp.c
134
endif
90
endif
135
 
91
 
136
ifeq ($(CONFIG_TSB),y)
92
ifeq ($(CONFIG_TSB),y)
137
ARCH_SOURCES += \
93
	ARCH_SOURCES += \
138
	arch/$(ARCH)/src/mm/tsb.c
94
		arch/$(KARCH)/src/mm/tsb.c
139
endif
95
endif
140
 
96
 
141
ifdef CONFIG_Z8530
97
ifdef CONFIG_Z8530
142
ARCH_SOURCES += \
98
	ARCH_SOURCES += \
143
	arch/$(ARCH)/src/drivers/fhc.c
99
		arch/$(KARCH)/src/drivers/fhc.c
144
endif
100
endif