1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
8 | include $(top_srcdir)/../../bsp.am |
---|
9 | |
---|
10 | include_bspdir = $(includedir)/bsp |
---|
11 | |
---|
12 | dist_project_lib_DATA = bsp_specs |
---|
13 | |
---|
14 | include_HEADERS = include/bsp.h |
---|
15 | include_HEADERS += include/tm27.h |
---|
16 | include_HEADERS += ../shared/include/asm.h |
---|
17 | include_HEADERS += ../shared/include/traptable.h |
---|
18 | |
---|
19 | ## these are the include files used by the boot process from HelenOS Sparc64 |
---|
20 | include_bootdir = $(includedir)/boot |
---|
21 | include_boot_HEADERS = \ |
---|
22 | ../shared/helenos/boot/include/align.h \ |
---|
23 | ../shared/helenos/boot/include/balloc.h \ |
---|
24 | ../shared/helenos/boot/include/gentypes.h \ |
---|
25 | ../shared/helenos/boot/include/main.h \ |
---|
26 | ../shared/helenos/boot/include/ofwarch.h \ |
---|
27 | ../shared/helenos/boot/include/ofw.h \ |
---|
28 | ../shared/helenos/boot/include/ofw_tree.h \ |
---|
29 | ../shared/helenos/boot/include/register.h \ |
---|
30 | ../shared/helenos/boot/include/stack.h \ |
---|
31 | ../shared/helenos/boot/include/types.h |
---|
32 | |
---|
33 | ## These include files mimic the HelenOS kernel include layout, which |
---|
34 | ## in HelenOS-0.4.2 is more complicated than the boot include dirs. |
---|
35 | |
---|
36 | # assumed by the HelenOS sources to be in the root includedir. We place them |
---|
37 | # in a kernel include directory. |
---|
38 | include_kerneldir = $(includedir)/kernel |
---|
39 | include_kernel_HEADERS = \ |
---|
40 | ../shared/helenos/kernel/generic/include/align.h |
---|
41 | |
---|
42 | include_archdir = $(includedir)/arch |
---|
43 | include_arch_HEADERS = \ |
---|
44 | ../shared/helenos/kernel/sparc64/include/arch.h \ |
---|
45 | ../shared/helenos/kernel/sparc64/include/boot.h \ |
---|
46 | ../shared/helenos/kernel/sparc64/include/regdef.h \ |
---|
47 | ../shared/helenos/kernel/sparc64/include/stack.h |
---|
48 | |
---|
49 | include_arch_sun4udir = $(includedir)/arch/sun4u |
---|
50 | include_arch_sun4u_HEADERS = \ |
---|
51 | ../shared/helenos/kernel/sparc64/include/sun4u/arch.h |
---|
52 | |
---|
53 | include_arch_mmdir = $(includedir)/arch/mm |
---|
54 | include_arch_mm_HEADERS = \ |
---|
55 | ../shared/helenos/kernel/sparc64/include/mm/cache_spec.h \ |
---|
56 | ../shared/helenos/kernel/sparc64/include/mm/frame.h \ |
---|
57 | ../shared/helenos/kernel/sparc64/include/mm/mmu.h \ |
---|
58 | ../shared/helenos/kernel/sparc64/include/mm/page.h \ |
---|
59 | ../shared/helenos/kernel/sparc64/include/mm/tlb.h \ |
---|
60 | ../shared/helenos/kernel/sparc64/include/mm/tte.h |
---|
61 | |
---|
62 | |
---|
63 | include_arch_mm_sun4udir = $(includedir)/arch/mm/sun4u |
---|
64 | include_arch_mm_sun4u_HEADERS = \ |
---|
65 | ../shared/helenos/kernel/sparc64/include/mm/sun4u/frame.h \ |
---|
66 | ../shared/helenos/kernel/sparc64/include/mm/sun4u/mmu.h \ |
---|
67 | ../shared/helenos/kernel/sparc64/include/mm/sun4u/page.h \ |
---|
68 | ../shared/helenos/kernel/sparc64/include/mm/sun4u/tlb.h \ |
---|
69 | ../shared/helenos/kernel/sparc64/include/mm/sun4u/tte.h |
---|
70 | |
---|
71 | include_genarch_ofwdir = $(includedir)/genarch/ofw |
---|
72 | include_genarch_ofw_HEADERS = \ |
---|
73 | ../shared/helenos/kernel/genarch/include/ofw/ofw_tree.h |
---|
74 | |
---|
75 | |
---|
76 | nodist_include_HEADERS = include/bspopts.h |
---|
77 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
78 | DISTCLEANFILES = include/bspopts.h |
---|
79 | noinst_PROGRAMS = |
---|
80 | |
---|
81 | nodist_include_HEADERS += ../../shared/include/coverhd.h |
---|
82 | |
---|
83 | |
---|
84 | EXTRA_DIST = ../shared/start/start.S |
---|
85 | start.$(OBJEXT): ../shared/start/start.S |
---|
86 | $(CPPASCOMPILE) -o $@ -c $< |
---|
87 | project_lib_DATA = start.$(OBJEXT) |
---|
88 | |
---|
89 | dist_project_lib_DATA += ../shared/startup/linkcmds |
---|
90 | |
---|
91 | startup_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \ |
---|
92 | ../../shared/bspstart.c ../../shared/bsppretaskinghook.c \ |
---|
93 | ../../shared/bsppost.c \ |
---|
94 | ../../shared/bootcard.c ../../shared/sbrk.c \ |
---|
95 | ../shared/startup/bspgetworkarea.c \ |
---|
96 | ../shared/startup/bsppredriverhook.c \ |
---|
97 | ../shared/startup/setvec.c \ |
---|
98 | ../../shared/gnatinstallhandler.c \ |
---|
99 | ../shared/helenos/boot/genarch/balloc.c \ |
---|
100 | ../shared/helenos/boot/genarch/ofw.c \ |
---|
101 | ../shared/helenos/boot/genarch/ofw_tree.c \ |
---|
102 | ../shared/helenos/boot/generic/string.c \ |
---|
103 | ../shared/helenos/boot/sparc64/loader/ofwarch.c \ |
---|
104 | ../shared/helenos/boot/sparc64/loader/main.c \ |
---|
105 | ../shared/helenos/boot/sparc64/loader/ofwasm.S \ |
---|
106 | ../shared/asm/asm.S \ |
---|
107 | start/bspinit.S |
---|
108 | |
---|
109 | mmu_SOURCES = \ |
---|
110 | ../shared/helenos/kernel/sparc64/src/cache.S \ |
---|
111 | ../shared/helenos/kernel/sparc64/src/sun4u/takemmu.S \ |
---|
112 | ../shared/start/trap_table.S |
---|
113 | |
---|
114 | #clock_SOURCES = ../../shared/clock_driver_simidle.c |
---|
115 | clock_SOURCES = ../shared/clock/ckinit.c |
---|
116 | |
---|
117 | console_SOURCES = ../../shared/console.c ../shared/console/conscfg.c |
---|
118 | |
---|
119 | timer_SOURCES = ../../shared/timerstub.c |
---|
120 | |
---|
121 | noinst_LIBRARIES = libbsp.a |
---|
122 | libbsp_a_SOURCES = $(startup_SOURCES) $(mmu_SOURCES) $(clock_SOURCES) $(console_SOURCES) \ |
---|
123 | $(timer_SOURCES) |
---|
124 | |
---|
125 | |
---|
126 | libbsp_a_LIBADD = \ |
---|
127 | ../../../libcpu/@RTEMS_CPU@/shared/shared-score.rel \ |
---|
128 | ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \ |
---|
129 | ../../../libcpu/@RTEMS_CPU@/shared/interrupts.rel \ |
---|
130 | ../../../libcpu/@RTEMS_CPU@/shared/sparc64-syscall.rel |
---|
131 | |
---|
132 | include $(srcdir)/preinstall.am |
---|
133 | include $(top_srcdir)/../../../../automake/local.am |
---|