Subversion Repositories HelenOS

Rev

Rev 3675 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3675 Rev 4377
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
CONFIG_FB = y
-
 
68
 
-
 
69
## Compile with support for Sun keyboard.
-
 
70
#
-
 
71
 
-
 
72
CONFIG_SUN_KBD = y
-
 
73
 
-
 
74
## Compile with support for OpenFirmware device tree.
-
 
75
#
-
 
76
 
-
 
77
CONFIG_OFW_TREE = y
-
 
78
 
-
 
79
ifeq ($(CONFIG_SMP),y)
-
 
80
	DEFS += -DCONFIG_SMP
-
 
81
endif
-
 
82
 
-
 
83
ifeq ($(CONFIG_SGCN),y)
-
 
84
        DEFS += -DCONFIG_SGCN
-
 
85
endif
-
 
86
 
-
 
87
ifeq ($(MACHINE),us)
45
ifeq ($(PROCESSOR),us)
88
    DEFS += -DUS
46
	DEFS += -DUS
89
endif
47
endif
90
 
48
 
91
ifeq ($(MACHINE),us3)
49
ifeq ($(PROCESSOR),us3)
92
	DEFS += -DUS3
50
	DEFS += -DUS3
93
endif
51
endif
94
 
52
 
95
ARCH_SOURCES = \
53
ARCH_SOURCES = \
96
	arch/$(ARCH)/src/cpu/cpu.c \
54
	arch/$(KARCH)/src/cpu/cpu.c \
97
	arch/$(ARCH)/src/asm.S \
55
	arch/$(KARCH)/src/asm.S \
98
	arch/$(ARCH)/src/panic.S \
56
	arch/$(KARCH)/src/panic.S \
99
	arch/$(ARCH)/src/console.c \
57
	arch/$(KARCH)/src/console.c \
100
	arch/$(ARCH)/src/context.S \
58
	arch/$(KARCH)/src/context.S \
101
	arch/$(ARCH)/src/fpu_context.c \
59
	arch/$(KARCH)/src/fpu_context.c \
102
	arch/$(ARCH)/src/dummy.s \
60
	arch/$(KARCH)/src/dummy.s \
103
	arch/$(ARCH)/src/mm/as.c \
61
	arch/$(KARCH)/src/mm/as.c \
104
	arch/$(ARCH)/src/mm/cache.S \
62
	arch/$(KARCH)/src/mm/cache.S \
105
	arch/$(ARCH)/src/mm/frame.c \
63
	arch/$(KARCH)/src/mm/frame.c \
106
	arch/$(ARCH)/src/mm/page.c \
64
	arch/$(KARCH)/src/mm/page.c \
107
	arch/$(ARCH)/src/mm/tlb.c \
65
	arch/$(KARCH)/src/mm/tlb.c \
108
	arch/$(ARCH)/src/sparc64.c \
66
	arch/$(KARCH)/src/sparc64.c \
109
	arch/$(ARCH)/src/start.S \
67
	arch/$(KARCH)/src/start.S \
110
	arch/$(ARCH)/src/proc/scheduler.c \
68
	arch/$(KARCH)/src/proc/scheduler.c \
111
	arch/$(ARCH)/src/proc/thread.c \
69
	arch/$(KARCH)/src/proc/thread.c \
112
	arch/$(ARCH)/src/trap/mmu.S \
70
	arch/$(KARCH)/src/trap/mmu.S \
113
	arch/$(ARCH)/src/trap/trap_table.S \
71
	arch/$(KARCH)/src/trap/trap_table.S \
114
	arch/$(ARCH)/src/trap/trap.c \
72
	arch/$(KARCH)/src/trap/trap.c \
115
	arch/$(ARCH)/src/trap/exception.c \
73
	arch/$(KARCH)/src/trap/exception.c \
116
	arch/$(ARCH)/src/trap/interrupt.c \
74
	arch/$(KARCH)/src/trap/interrupt.c \
117
	arch/$(ARCH)/src/ddi/ddi.c \
75
	arch/$(KARCH)/src/ddi/ddi.c \
118
	arch/$(ARCH)/src/drivers/tick.c \
76
	arch/$(KARCH)/src/drivers/tick.c \
119
	arch/$(ARCH)/src/drivers/kbd.c \
77
	arch/$(KARCH)/src/drivers/kbd.c \
120
	arch/$(ARCH)/src/drivers/scr.c \
78
	arch/$(KARCH)/src/drivers/sgcn.c \
121
	arch/$(ARCH)/src/drivers/sgcn.c \
79
	arch/$(KARCH)/src/drivers/pci.c \
122
	arch/$(ARCH)/src/drivers/pci.c
80
	arch/$(KARCH)/src/drivers/fhc.c
123
 
81
 
124
 
-
 
125
ifeq ($(CONFIG_SMP),y)
82
ifeq ($(CONFIG_FB),y)
126
ARCH_SOURCES += \
83
	ARCH_SOURCES += \
127
	arch/$(ARCH)/src/smp/ipi.c \
-
 
128
	arch/$(ARCH)/src/smp/smp.c
84
		arch/$(KARCH)/src/drivers/scr.c
129
endif
85
endif
130
 
86
 
131
ifeq ($(CONFIG_TSB),y)
87
ifeq ($(CONFIG_SMP),y)
132
ARCH_SOURCES += \
88
	ARCH_SOURCES += \
-
 
89
		arch/$(KARCH)/src/smp/ipi.c \
133
	arch/$(ARCH)/src/mm/tsb.c
90
		arch/$(KARCH)/src/smp/smp.c
134
endif
91
endif
135
 
92
 
136
ifdef CONFIG_Z8530
93
ifeq ($(CONFIG_TSB),y)
137
ARCH_SOURCES += \
94
	ARCH_SOURCES += \
138
	arch/$(ARCH)/src/drivers/fhc.c
95
		arch/$(KARCH)/src/mm/tsb.c
139
endif
96
endif