summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc64/usiii/Makefile.am
blob: 6c169e0e6411423fceeddb7be3b16dcc1c2a5495 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
ACLOCAL_AMFLAGS = -I ../../../../aclocal

include $(top_srcdir)/../../../../automake/compile.am
include $(top_srcdir)/../../bsp.am

include_bspdir = $(includedir)/bsp

dist_project_lib_DATA = bsp_specs

include_HEADERS = include/bsp.h 
include_HEADERS += include/tm27.h
include_HEADERS += ../shared/include/asm.h 
include_HEADERS += ../shared/include/traptable.h 

## these are the include files used by the boot process from HelenOS Sparc64
include_bootdir = $(includedir)/boot
include_boot_HEADERS = \
  ../shared/helenos/boot/include/align.h \
  ../shared/helenos/boot/include/balloc.h \
  ../shared/helenos/boot/include/gentypes.h \
  ../shared/helenos/boot/include/main.h \
  ../shared/helenos/boot/include/ofwarch.h \
  ../shared/helenos/boot/include/ofw.h \
  ../shared/helenos/boot/include/ofw_tree.h \
  ../shared/helenos/boot/include/register.h \
  ../shared/helenos/boot/include/stack.h \
  ../shared/helenos/boot/include/types.h 

## These include files mimic the HelenOS kernel include layout, which 
## in HelenOS-0.4.2 is more complicated than the boot include dirs.

# assumed by the HelenOS sources to be in the root includedir. We place them
# in a kernel include directory.
include_kerneldir = $(includedir)/kernel
include_kernel_HEADERS = \
  ../shared/helenos/kernel/generic/include/align.h

include_archdir = $(includedir)/arch
include_arch_HEADERS = \
  ../shared/helenos/kernel/sparc64/include/arch.h \
  ../shared/helenos/kernel/sparc64/include/boot.h \
  ../shared/helenos/kernel/sparc64/include/regdef.h \
  ../shared/helenos/kernel/sparc64/include/stack.h 

include_arch_sun4udir = $(includedir)/arch/sun4u
include_arch_sun4u_HEADERS = \
  ../shared/helenos/kernel/sparc64/include/sun4u/arch.h 

include_arch_mmdir = $(includedir)/arch/mm
include_arch_mm_HEADERS = \
  ../shared/helenos/kernel/sparc64/include/mm/cache_spec.h \
  ../shared/helenos/kernel/sparc64/include/mm/frame.h \
  ../shared/helenos/kernel/sparc64/include/mm/mmu.h \
  ../shared/helenos/kernel/sparc64/include/mm/page.h \
  ../shared/helenos/kernel/sparc64/include/mm/tlb.h \
  ../shared/helenos/kernel/sparc64/include/mm/tte.h


include_arch_mm_sun4udir = $(includedir)/arch/mm/sun4u
include_arch_mm_sun4u_HEADERS = \
  ../shared/helenos/kernel/sparc64/include/mm/sun4u/frame.h \
  ../shared/helenos/kernel/sparc64/include/mm/sun4u/mmu.h \
  ../shared/helenos/kernel/sparc64/include/mm/sun4u/page.h \
  ../shared/helenos/kernel/sparc64/include/mm/sun4u/tlb.h \
  ../shared/helenos/kernel/sparc64/include/mm/sun4u/tte.h

include_genarch_ofwdir = $(includedir)/genarch/ofw
include_genarch_ofw_HEADERS = \
  ../shared/helenos/kernel/genarch/include/ofw/ofw_tree.h


nodist_include_HEADERS = include/bspopts.h    
nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h 
DISTCLEANFILES = include/bspopts.h
noinst_PROGRAMS =

nodist_include_HEADERS += ../../shared/include/coverhd.h


EXTRA_DIST = ../shared/start/start.S 
start.$(OBJEXT): ../shared/start/start.S
	$(CPPASCOMPILE) -o $@ -c $<
project_lib_DATA = start.$(OBJEXT)

dist_project_lib_DATA += ../shared/startup/linkcmds

startup_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
    ../../shared/bspstart.c ../../shared/bsppretaskinghook.c \
    ../../shared/bsppost.c \
    ../../shared/bootcard.c ../../shared/sbrk.c \
    ../shared/startup/bspgetworkarea.c \
    ../shared/startup/bsppredriverhook.c \
    ../shared/startup/setvec.c \
    ../../shared/gnatinstallhandler.c  \
    ../shared/helenos/boot/genarch/balloc.c \
    ../shared/helenos/boot/genarch/ofw.c \
    ../shared/helenos/boot/genarch/ofw_tree.c \
    ../shared/helenos/boot/generic/string.c \
    ../shared/helenos/boot/sparc64/loader/ofwarch.c \
    ../shared/helenos/boot/sparc64/loader/main.c \
    ../shared/helenos/boot/sparc64/loader/ofwasm.S \
    ../shared/asm/asm.S \
    start/bspinit.S

mmu_SOURCES = \
    ../shared/helenos/kernel/sparc64/src/cache.S \
    ../shared/helenos/kernel/sparc64/src/sun4u/takemmu.S \
    ../shared/start/trap_table.S

#clock_SOURCES = ../../shared/clock_driver_simidle.c
clock_SOURCES = ../shared/clock/ckinit.c

console_SOURCES = ../../shared/console.c  ../shared/console/conscfg.c \
    ../../shared/console_select.c  ../../shared/console_control.c \
    ../../shared/console_read.c ../../shared/console_write.c

timer_SOURCES = ../../shared/timerstub.c

noinst_LIBRARIES = libbsp.a 
libbsp_a_SOURCES = $(startup_SOURCES) $(mmu_SOURCES) $(clock_SOURCES) $(console_SOURCES) \
    $(timer_SOURCES)


libbsp_a_LIBADD = \
      ../../../libcpu/@RTEMS_CPU@/shared/shared-score.rel \
      ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
      ../../../libcpu/@RTEMS_CPU@/shared/interrupts.rel \
      ../../../libcpu/@RTEMS_CPU@/shared/sparc64-syscall.rel 

include $(srcdir)/preinstall.am
include $(top_srcdir)/../../../../automake/local.am