summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/qoriq/Makefile.am
blob: 646dbfbc28079660be10d9c93b2c0807d449ef0f (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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
ACLOCAL_AMFLAGS = -I ../../../../aclocal
EXTRA_DIST =

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

include_bspdir = $(includedir)/bsp
include_asmdir = $(includedir)/asm
include_uapi_asmdir = $(includedir)/uapi/asm

dist_project_lib_DATA = bsp_specs

include_HEADERS = include/bsp.h
include_HEADERS += include/tm27.h

nodist_include_HEADERS = include/bspopts.h
DISTCLEANFILES = include/bspopts.h

EXTRA_DIST += README

noinst_PROGRAMS =


include_bsp_HEADERS = include/irq.h \
	../../shared/include/irq-generic.h \
	../../shared/include/irq-info.h \
	../../shared/include/bootcard.h \
	../../shared/include/utility.h \
	../shared/include/start.h \
	../shared/include/tictac.h \
	../shared/include/linker-symbols.h \
	include/tsec-config.h \
	include/mmu.h \
	include/intercom.h \
	include/uart-bridge.h \
	include/qoriq.h

include_asm_HEADERS =
include_asm_HEADERS += include/asm/epapr_hcalls.h
include_asm_HEADERS += include/asm/fsl_hcalls.h

include_uapi_asm_HEADERS =
include_uapi_asm_HEADERS += include/uapi/asm/epapr_hcalls.h

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

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

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

dist_project_lib_DATA += startup/linkcmds \
	../shared/startup/linkcmds.base \
	startup/linkcmds.qoriq_core_0 \
	startup/linkcmds.qoriq_core_1 \
	startup/linkcmds.qoriq_e500 \
	startup/linkcmds.qoriq_e6500_32 \
	startup/linkcmds.qoriq_e6500_64

noinst_LIBRARIES = libbsp.a
libbsp_a_SOURCES =

# Startup
libbsp_a_SOURCES += \
	../../shared/bootcard.c \
	../../shared/getentropy-cpucounter.c \
	../../shared/sbrk.c \
	../../shared/gnatinstallhandler.c \
	../../shared/bspclean.c \
	../../shared/src/bsp-fdt.c \
	../shared/src/ppc-exc-handler-table.c \
	../shared/src/tictac.c \
	../shared/src/bsp-start-zero.S \
	../shared/startup/bspidle.c \
	startup/epapr_hcalls.S \
	startup/l1cache.S \
	startup/l2cache.S \
	startup/mmu.c \
	startup/mmu-tlb1.S \
	startup/mmu-config.c \
	startup/portal.c \
	startup/restart.S \
	startup/bsppredriverhook.c \
	startup/bspstart.c \
	startup/bspreset.c \
	startup/bsprestart.c

# Clock
libbsp_a_SOURCES += clock/clock-config.c \
	../../shared/clockdrv_shell.h

# Timer
libbsp_a_SOURCES += timer/timer.c

# IRQ
libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
libbsp_a_SOURCES += ../../shared/src/irq-generic.c
libbsp_a_SOURCES += ../../shared/src/irq-info.c
libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
libbsp_a_SOURCES += ../../shared/src/irq-server.c
libbsp_a_SOURCES += ../../shared/src/irq-shell.c
libbsp_a_SOURCES += irq/irq.c

# Console
libbsp_a_SOURCES += ../../shared/console-termios-init.c
libbsp_a_SOURCES += ../../shared/console-termios.c
libbsp_a_SOURCES += console/uart-bridge-master.c
libbsp_a_SOURCES += console/uart-bridge-slave.c
libbsp_a_SOURCES += console/console-config.c

# RTC
libbsp_a_SOURCES += ../../shared/tod.c \
	rtc/rtc-config.c

# MPCI
libbsp_a_SOURCES += shmsupp/lock.S \
	shmsupp/intercom.c \
	shmsupp/intercom-mpci.c

libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
	../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
	../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
	../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \
	../../../libcpu/@RTEMS_CPU@/e500/mmu.rel

if HAS_NETWORKING
libbsp_a_SOURCES += network/network.c \
	network/if_intercom.c
libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/tsec.rel
endif

if HAS_SMP
libbsp_a_SOURCES += startup/bspsmp.c
endif

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