Subversion Repositories HelenOS

Rev

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

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