source: rtems/c/src/lib/libcpu/m68k/Makefile.am @ 33ae226

5
Last change on this file since 33ae226 was 7e5c9b89, checked in by Sebastian Huber <sebastian.huber@…>, on 11/25/14 at 13:58:13

rtems: Move rtems_cache_aligned_malloc()

Make sure also the size is cache aligned since otherwise we may have
some overlap with the next allocation block. A cache invalidate on this
area would be fatal.

  • Property mode set to 100644
File size: 6.9 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../aclocal
2
3include $(top_srcdir)/../../../automake/compile.am
4
5noinst_PROGRAMS =
6
7if shared
8include_libcpudir = $(includedir)/libcpu
9
10## shared/cache
11include_libcpu_HEADERS = ../shared/include/cache.h
12
13noinst_PROGRAMS += shared/cache.rel
14shared_cache_rel_SOURCES = shared/cache/cache.c
15shared_cache_rel_SOURCES += shared/cache/cache_.h
16shared_cache_rel_SOURCES += ../shared/src/cache_manager.c
17shared_cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
18shared_cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
19
20## shared/misc
21
22# gcc doesn't recognize difference between the cpu32 and cpu32+ so we have to
23if mcpu32p
24M68K_CPPFLAGS = -D__mcpu32p__
25endif
26if mcf5272
27M68K_CPPFLAGS = -Dmcf5272
28endif
29
30noinst_PROGRAMS += shared/misc.rel
31shared_misc_rel_SOURCES = shared/misc/m68kidle.c shared/misc/memProbe.c
32shared_misc_rel_CPPFLAGS = $(AM_CPPFLAGS) $(M68K_CPPFLAGS)
33shared_misc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
34endif
35
36if m68040
37## m68040/fpsp
38noinst_PROGRAMS += m68040/fpsp.rel
39noinst_PROGRAMS += m68040/fpsp_tmp.rel
40m68040_fpsp_tmp_rel_SOURCES = m68040/fpsp/rtems_fpsp.c m68040/fpsp/bindec.S \
41    m68040/fpsp/binstr.S m68040/fpsp/bugfix.S m68040/fpsp/decbin.S \
42    m68040/fpsp/do_func.S m68040/fpsp/gen_except.S m68040/fpsp/get_op.S \
43    m68040/fpsp/kernel_ex.S m68040/fpsp/res_func.S m68040/fpsp/round.S \
44    m68040/fpsp/rtems_skel.S m68040/fpsp/sacos.S m68040/fpsp/sasin.S \
45    m68040/fpsp/satan.S m68040/fpsp/satanh.S m68040/fpsp/scale.S \
46    m68040/fpsp/scosh.S m68040/fpsp/setox.S m68040/fpsp/sgetem.S \
47    m68040/fpsp/sint.S m68040/fpsp/slog2.S m68040/fpsp/slogn.S \
48    m68040/fpsp/smovecr.S m68040/fpsp/srem_mod.S m68040/fpsp/ssin.S \
49    m68040/fpsp/ssinh.S m68040/fpsp/stan.S m68040/fpsp/stanh.S \
50    m68040/fpsp/sto_res.S m68040/fpsp/stwotox.S m68040/fpsp/tbldo.S \
51    m68040/fpsp/util.S m68040/fpsp/x_bsun.S m68040/fpsp/x_fline.S \
52    m68040/fpsp/x_operr.S m68040/fpsp/x_ovfl.S m68040/fpsp/x_snan.S \
53    m68040/fpsp/x_store.S m68040/fpsp/x_unfl.S m68040/fpsp/x_unimp.S \
54    m68040/fpsp/x_unsupp.S
55m68040_fpsp_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS)
56m68040_fpsp_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
57
58# avoid name clashes and modifying the source by
59# prefixing all (global) symbols in the binary
60m68040/fpsp_tmp1.rel: m68040/fpsp_tmp.rel
61        $(OBJCOPY) --prefix-symbols __fpsp_ $^ $@
62
63# Then remove the prefix again on all global
64# symbols we really need:
65m68040/fpsp.rel: m68040/fpsp_tmp1.rel
66            $(OBJCOPY) --redefine-sym __fpsp_M68KFPSPInstallExceptionHandlers=M68KFPSPInstallExceptionHandlers --redefine-sym __fpsp_M68040FPSPUserExceptionHandlers=M68040FPSPUserExceptionHandlers --redefine-sym __fpsp__CPU_ISR_install_raw_handler=_CPU_ISR_install_raw_handler --redefine-sym __fpsp__FPSP_install_raw_handler=_FPSP_install_raw_handler $^ $@
67
68noinst_HEADERS = m68040/fpsp/fpsp.defs
69endif
70EXTRA_DIST = m68040/fpsp/README
71
72if mcf5206
73# mcf5206/include
74include_mcf5206dir = $(includedir)/mcf5206
75include_mcf5206_HEADERS = mcf5206/include/mcf5206e.h mcf5206/include/mcfmbus.h \
76    mcf5206/include/mcfuart.h
77
78## mcf5206/clock
79noinst_PROGRAMS += mcf5206/clock.rel
80mcf5206_clock_rel_SOURCES = mcf5206/clock/ckinit.c
81mcf5206_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
82mcf5206_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
83
84## mcf5206/mcfuart
85noinst_PROGRAMS += mcf5206/mcfuart.rel
86mcf5206_mcfuart_rel_SOURCES = mcf5206/console/mcfuart.c
87mcf5206_mcfuart_rel_CPPFLAGS = $(AM_CPPFLAGS)
88mcf5206_mcfuart_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
89
90## mcf5206/mbus
91noinst_PROGRAMS += mcf5206/mbus.rel
92mcf5206_mbus_rel_SOURCES = mcf5206/mbus/mcfmbus.c
93mcf5206_mbus_rel_CPPFLAGS = $(AM_CPPFLAGS)
94mcf5206_mbus_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
95
96## mcf5206/timer
97noinst_PROGRAMS += mcf5206/timer.rel
98mcf5206_timer_rel_SOURCES = mcf5206/timer/timer.c mcf5206/timer/timerisr.S
99mcf5206_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
100mcf5206_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
101endif
102
103if mcf5223x
104## mcf5223x/include
105include_mcf5223xdir = $(includedir)/mcf5223x
106include_mcf5223x_HEADERS = mcf5223x/include/mcf5223x.h
107
108## mcf5223x/cache
109noinst_PROGRAMS += mcf5223x/cachepd.rel
110mcf5223x_cachepd_rel_SOURCES = mcf5223x/cache/cachepd.c
111mcf5223x_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
112mcf5223x_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
113endif
114
115if mcf5225x
116## mcf5225x/include
117include_mcf5225xdir = $(includedir)/mcf5225x
118include_mcf5225x_HEADERS = mcf5225x/include/mcf5225x.h
119
120# mcf5225x/cache
121noinst_PROGRAMS += mcf5225x/cachepd.rel
122mcf5225x_cachepd_rel_SOURCES = mcf5225x/cache/cachepd.c
123mcf5225x_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
124mcf5225x_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
125
126# Network
127if HAS_NETWORKING
128include_mcf5225x_HEADERS += mcf5225x/include/fec.h
129endif ## HAS_NETWORKING
130endif
131
132if mcf5235
133## mcf5235/include
134include_mcf5235dir = $(includedir)/mcf5235
135include_mcf5235_HEADERS = mcf5235/include/mcf5235.h
136
137## mcf5235/cache
138noinst_PROGRAMS += mcf5235/cachepd.rel
139mcf5235_cachepd_rel_SOURCES = mcf5235/cache/cachepd.c
140mcf5235_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
141mcf5235_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
142endif
143
144if mcf532x
145## mcf532x/include
146include_mcf532xdir = $(includedir)/mcf532x
147include_mcf532x_HEADERS = mcf532x/include/mcf532x.h
148
149## mcf532x/cache
150noinst_PROGRAMS += mcf532x/cachepd.rel
151mcf532x_cachepd_rel_SOURCES = mcf532x/cache/cachepd.c
152mcf532x_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
153mcf532x_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
154endif
155
156if mcf5272
157## mcf5272/include
158include_mcf5272dir = $(includedir)/mcf5272
159include_mcf5272_HEADERS = mcf5272/include/mcf5272.h
160
161## clock
162noinst_PROGRAMS += mcf5272/clock.rel
163mcf5272_clock_rel_SOURCES = mcf5272/clock/ckinit.c
164mcf5272_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
165mcf5272_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
166
167## timer
168noinst_PROGRAMS += mcf5272/timer.rel
169mcf5272_timer_rel_SOURCES = mcf5272/timer/timer.c mcf5272/timer/timerisr.S
170mcf5272_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
171mcf5272_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
172endif
173
174if mcf5282
175## mcf5282/include
176include_mcf5282dir = $(includedir)/mcf5282
177include_mcf5282_HEADERS = mcf5282/include/mcf5282.h
178
179noinst_PROGRAMS += mcf5282/cachepd.rel
180mcf5282_cachepd_rel_SOURCES = mcf5282/cache/cachepd.c
181mcf5282_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
182mcf5282_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
183endif
184
185if mcf548x
186## mcf548x/include
187include_mcf548xdir = $(includedir)/mcf548x
188include_mcf548x_HEADERS = mcf548x/include/mcf548x.h
189
190## mcf548x/mcdma
191noinst_PROGRAMS += mcf548x/mcdma.rel
192include_mcf548x_HEADERS +=  mcf548x/mcdma/MCD_progCheck.h mcf548x/mcdma/MCD_dma.h \
193                            mcf548x/mcdma/MCD_tasksInit.h mcf548x/mcdma/mcdma_glue.h
194mcf548x_mcdma_rel_SOURCES = mcf548x/mcdma/MCD_dmaApi.c mcf548x/mcdma/MCD_tasksInit.c \
195                            mcf548x/mcdma/MCD_tasks.c  mcf548x/mcdma/mcdma_glue.c
196
197mcf548x_mcdma_rel_CPPFLAGS = $(AM_CPPFLAGS)
198mcf548x_mcdma_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
199endif
200
201include $(srcdir)/preinstall.am
202include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.