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

5
Last change on this file since a4570829 was 4cf93658, checked in by Sebastian Huber <sebastian.huber@…>, on Jan 27, 2018 at 1:37:51 PM

bsps: Rework cache manager implementation

The previous cache manager support used a single souce file
(cache_manager.c) which included an implementation header (cache_.h).
This required the use of specialized include paths to find the right
header file. Change this to include a generic implementation header
(cacheimpl.h) in specialized source files.

Use the following directories and files:

  • bsps/shared/cache
  • bsps/@RTEMS_CPU@/shared/cache
  • bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY/start/cache.c

Update #3285.

  • Property mode set to 100644
File size: 4.0 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../aclocal
2
3include $(top_srcdir)/../../../automake/compile.am
4
5noinst_PROGRAMS =
6
7if shared
8
9## shared/misc
10
11# gcc doesn't recognize difference between the cpu32 and cpu32+ so we have to
12if mcpu32p
13M68K_CPPFLAGS = -D__mcpu32p__
14endif
15if mcf5272
16M68K_CPPFLAGS = -Dmcf5272
17endif
18
19noinst_PROGRAMS += shared/misc.rel
20shared_misc_rel_SOURCES = shared/misc/m68kidle.c shared/misc/memProbe.c
21shared_misc_rel_CPPFLAGS = $(AM_CPPFLAGS) $(M68K_CPPFLAGS)
22shared_misc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
23endif
24
25if m68040
26## m68040/fpsp
27noinst_PROGRAMS += m68040/fpsp.rel
28noinst_PROGRAMS += m68040/fpsp_tmp.rel
29m68040_fpsp_tmp_rel_SOURCES = m68040/fpsp/rtems_fpsp.c m68040/fpsp/bindec.S \
30    m68040/fpsp/binstr.S m68040/fpsp/bugfix.S m68040/fpsp/decbin.S \
31    m68040/fpsp/do_func.S m68040/fpsp/gen_except.S m68040/fpsp/get_op.S \
32    m68040/fpsp/kernel_ex.S m68040/fpsp/res_func.S m68040/fpsp/round.S \
33    m68040/fpsp/rtems_skel.S m68040/fpsp/sacos.S m68040/fpsp/sasin.S \
34    m68040/fpsp/satan.S m68040/fpsp/satanh.S m68040/fpsp/scale.S \
35    m68040/fpsp/scosh.S m68040/fpsp/setox.S m68040/fpsp/sgetem.S \
36    m68040/fpsp/sint.S m68040/fpsp/slog2.S m68040/fpsp/slogn.S \
37    m68040/fpsp/smovecr.S m68040/fpsp/srem_mod.S m68040/fpsp/ssin.S \
38    m68040/fpsp/ssinh.S m68040/fpsp/stan.S m68040/fpsp/stanh.S \
39    m68040/fpsp/sto_res.S m68040/fpsp/stwotox.S m68040/fpsp/tbldo.S \
40    m68040/fpsp/util.S m68040/fpsp/x_bsun.S m68040/fpsp/x_fline.S \
41    m68040/fpsp/x_operr.S m68040/fpsp/x_ovfl.S m68040/fpsp/x_snan.S \
42    m68040/fpsp/x_store.S m68040/fpsp/x_unfl.S m68040/fpsp/x_unimp.S \
43    m68040/fpsp/x_unsupp.S
44m68040_fpsp_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS)
45m68040_fpsp_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
46
47# avoid name clashes and modifying the source by
48# prefixing all (global) symbols in the binary
49m68040/fpsp_tmp1.rel: m68040/fpsp_tmp.rel
50        $(OBJCOPY) --prefix-symbols __fpsp_ $^ $@
51
52# Then remove the prefix again on all global
53# symbols we really need:
54m68040/fpsp.rel: m68040/fpsp_tmp1.rel
55            $(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 $^ $@
56
57noinst_HEADERS = m68040/fpsp/fpsp.defs
58endif
59EXTRA_DIST = m68040/fpsp/README
60
61if mcf5206
62# mcf5206/include
63## mcf5206/clock
64noinst_PROGRAMS += mcf5206/clock.rel
65mcf5206_clock_rel_SOURCES = mcf5206/clock/ckinit.c
66mcf5206_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
67mcf5206_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
68
69## mcf5206/mcfuart
70noinst_PROGRAMS += mcf5206/mcfuart.rel
71mcf5206_mcfuart_rel_SOURCES = mcf5206/console/mcfuart.c
72mcf5206_mcfuart_rel_CPPFLAGS = $(AM_CPPFLAGS)
73mcf5206_mcfuart_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
74
75## mcf5206/mbus
76noinst_PROGRAMS += mcf5206/mbus.rel
77mcf5206_mbus_rel_SOURCES = mcf5206/mbus/mcfmbus.c
78mcf5206_mbus_rel_CPPFLAGS = $(AM_CPPFLAGS)
79mcf5206_mbus_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
80
81## mcf5206/timer
82noinst_PROGRAMS += mcf5206/timer.rel
83mcf5206_timer_rel_SOURCES = mcf5206/timer/timer.c mcf5206/timer/timerisr.S
84mcf5206_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
85mcf5206_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
86endif
87
88if mcf5272
89## mcf5272/include
90## clock
91noinst_PROGRAMS += mcf5272/clock.rel
92mcf5272_clock_rel_SOURCES = mcf5272/clock/ckinit.c
93mcf5272_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
94mcf5272_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
95
96## timer
97noinst_PROGRAMS += mcf5272/timer.rel
98mcf5272_timer_rel_SOURCES = mcf5272/timer/timer.c mcf5272/timer/timerisr.S
99mcf5272_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
100mcf5272_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
101endif
102
103if mcf548x
104## mcf548x/include
105## mcf548x/mcdma
106noinst_PROGRAMS += mcf548x/mcdma.rel
107mcf548x_mcdma_rel_SOURCES = mcf548x/mcdma/MCD_dmaApi.c mcf548x/mcdma/MCD_tasksInit.c \
108                            mcf548x/mcdma/MCD_tasks.c  mcf548x/mcdma/mcdma_glue.c
109
110mcf548x_mcdma_rel_CPPFLAGS = $(AM_CPPFLAGS)
111mcf548x_mcdma_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
112endif
113
114include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.