source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am @ 2f7a25c

Last change on this file since 2f7a25c was 2f7a25c, checked in by Joel Sherrill <joel@…>, on Dec 20, 2017 at 8:38:28 PM

beatnik, motorola_powerpc, mvme3100, mvme5500: Simplify bsp_specs

This collection of BSPs shared the linker script shared/startup/linkcmds.
I renamed that ot shared/startup/linkcmds.share and made a BSP family
specific startup/linkcmds. This was needed because each BSP family had
a different combination of start file name, undefined symbols, etc.

Updates #3520.

  • Property mode set to 100644
File size: 6.0 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../../aclocal
2
3_SUBDIRS  = .
4_SUBDIRS += bootloader
5if QEMU
6_SUBDIRS += qemu_fakerom
7endif
8
9include $(top_srcdir)/../../../../automake/compile.am
10
11include_bspdir = $(includedir)/bsp
12
13dist_project_lib_DATA = bsp_specs
14
15include_HEADERS = include/bsp.h
16include_HEADERS += include/tm27.h
17
18nodist_include_HEADERS = include/bspopts.h
19nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
20DISTCLEANFILES = include/bspopts.h
21
22noinst_PROGRAMS =
23
24include_HEADERS += ../../powerpc/shared/include/nvram.h
25
26noinst_LIBRARIES = libbspstart.a
27libbspstart_a_SOURCES = ../../powerpc/shared/start/start.S
28project_lib_DATA = start.$(OBJEXT)
29
30libbspstart_a_SOURCES += ../../powerpc/shared/start/rtems_crti.S
31project_lib_DATA += rtems_crti.$(OBJEXT)
32
33libbspstart_a_SOURCES += ../../powerpc/shared/start/vectors_entry.S
34project_lib_DATA += vectors_entry.$(OBJEXT)
35
36dist_project_lib_DATA += ../shared/startup/linkcmds.share
37dist_project_lib_DATA += startup/linkcmds
38
39noinst_LIBRARIES += libbsp.a
40libbsp_a_SOURCES =
41
42# startup
43libbsp_a_SOURCES += ../../powerpc/shared/startup/bspstart.c \
44        ../../powerpc/shared/startup/bspgetworkarea.c \
45        ../../powerpc/shared/showbats.c \
46    ../../powerpc/shared/startup/bsppredriverhook.c \
47        ../../powerpc/shared/startup/zerobss.c \
48    ../../powerpc/shared/startup/pgtbl_setup.c \
49    ../../powerpc/shared/startup/pgtbl_activate.c \
50        ../../powerpc/shared/startup/ppc_idle.c \
51    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
52    ../../shared/getentropy-cpucounter.c \
53    ../../shared/bspclean.c \
54    ../../shared/gnatinstallhandler.c \
55    startup/bspreset.c
56
57
58# tod
59libbsp_a_SOURCES += ../../shared/tod.c ../../powerpc/shared/tod/todcfg.c
60# pclock
61libbsp_a_SOURCES += ../../powerpc/shared/clock/p_clock.c
62
63include_bsp_HEADERS = ../../powerpc/shared/console/consoleIo.h
64include_bsp_HEADERS += ../../powerpc/shared/console/uart.h
65
66# Needs conditional compilation
67polledIO_CPPFLAGS = -DSTATIC_LOG_ALLOC
68noinst_PROGRAMS += polledIO.rel
69polledIO_rel_SOURCES = ../../powerpc/shared/console/polled_io.c
70polledIO_rel_CPPFLAGS = $(AM_CPPFLAGS) $(polledIO_CPPFLAGS)
71polledIO_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
72
73# console
74libbsp_a_SOURCES += ../../powerpc/shared/console/uart.c
75libbsp_a_SOURCES += ../../powerpc/shared/console/console.c
76libbsp_a_SOURCES += ../../powerpc/shared/console/consoleIo.h
77libbsp_a_SOURCES += ../../powerpc/shared/console/keyboard.h
78libbsp_a_SOURCES += ../../powerpc/shared/console/uart.h
79
80include_bsp_HEADERS += ../../powerpc/shared/irq/irq.h \
81        ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/irq_supp.h
82
83# irq
84libbsp_a_SOURCES += ../../powerpc/shared/irq/irq_init.c
85libbsp_a_SOURCES += ../../powerpc/shared/irq/openpic_i8259_irq.c
86libbsp_a_SOURCES += ../../powerpc/shared/irq/i8259.c ../../powerpc/shared/irq/irq.h
87
88include_bsp_HEADERS += ../../powerpc/shared/motorola/motorola.h
89# motorola
90libbsp_a_SOURCES += ../../powerpc/shared/motorola/motorola.h
91libbsp_a_SOURCES += ../../powerpc/shared/motorola/motorola.c
92
93include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h
94# openpic
95libbsp_a_SOURCES += ../../powerpc/shared/openpic/openpic.h
96libbsp_a_SOURCES += ../../powerpc/shared/openpic/openpic.c
97libbsp_a_SOURCES += ../../powerpc/shared/openpic/openpic.h
98
99include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h
100# pci
101libbsp_a_SOURCES += ../../powerpc/shared/pci/pci.c
102libbsp_a_SOURCES += ../../powerpc/shared/pci/detect_raven_bridge.c
103libbsp_a_SOURCES += ../../powerpc/shared/pci/generic_clear_hberrs.c
104libbsp_a_SOURCES += ../../powerpc/shared/pci/pcifinddevice.c
105libbsp_a_SOURCES += ../../powerpc/shared/pci/pci.h
106
107include_bsp_HEADERS += ../../powerpc/shared/residual/residual.h \
108    ../../powerpc/shared/residual/pnp.h
109# residual
110libbsp_a_SOURCES += ../../powerpc/shared/residual/pnp.h
111libbsp_a_SOURCES += ../../powerpc/shared/residual/residual.h
112libbsp_a_SOURCES += ../../powerpc/shared/residual/residual.c
113
114include_bsp_HEADERS += ../../shared/vmeUniverse/vmeUniverse.h \
115    ../../shared/vmeUniverse/vme_am_defs.h \
116    ../../shared/vmeUniverse/VME.h \
117    ../../powerpc/shared/vme/VMEConfig.h \
118    ../../shared/vmeUniverse/vmeUniverseDMA.h\
119    ../../shared/vmeUniverse/bspVmeDmaList.h\
120    ../../shared/vmeUniverse/VMEDMA.h
121# vme
122libbsp_a_SOURCES += ../../shared/vmeUniverse/vmeUniverse.c
123libbsp_a_SOURCES += ../../shared/vmeUniverse/bspVmeDmaList.c
124libbsp_a_SOURCES += ../../shared/vmeUniverse/vmeUniverse.h
125libbsp_a_SOURCES += ../../shared/vmeUniverse/vme_am_defs.h
126libbsp_a_SOURCES += ../../shared/vmeUniverse/VME.h
127libbsp_a_SOURCES += ../../powerpc/shared/vme/vmeconfig.c
128libbsp_a_SOURCES += ../../powerpc/shared/vme/vme_universe.c
129libbsp_a_SOURCES += ../../powerpc/shared/vme/VMEConfig.h
130
131if QEMU
132if HAS_NETWORKING
133nodist_include_HEADERS  += $(srcdir)/../../i386/pc386/include/wd80x3.h
134ne2000_CPPFLAGS          = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
135ne2000_CPPFLAGS         += '-Dbsp_cmdline_arg=rtems_bsp_cmdline_get_param_raw'
136noinst_PROGRAMS         += ne2000.rel
137ne2000_rel_SOURCES       = ../../i386/pc386/ne2000/ne2000.c
138ne2000_rel_CPPFLAGS      = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
139ne2000_rel_LDFLAGS       = $(RTEMS_RELLDFLAGS)
140endif
141endif
142
143libbsp_a_LIBADD = \
144    polledIO.rel \
145    ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
146    ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
147    ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \
148    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
149    ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \
150    ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \
151    ../../../libcpu/@RTEMS_CPU@/@exceptions@/irq_bspsupport.rel \
152    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
153    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel \
154    ../../../libcpu/@RTEMS_CPU@/mpc6xx/altivec.rel
155
156if QEMU
157if HAS_NETWORKING
158libbsp_a_LIBADD+=ne2000.rel
159endif
160endif
161
162EXTRA_DIST = BOOTING README.mtx603e README.MVME2100 README.MVME2300 \
163              README.MVME2400 \
164    README.OTHERBOARDS
165EXTRA_DIST += README.dec21140
166EXTRA_DIST += times.mcp750 times.mvme2307
167
168include $(srcdir)/preinstall.am
169include $(top_srcdir)/../../../../automake/local.am
170include $(top_srcdir)/../../../../automake/subdirs.am
Note: See TracBrowser for help on using the repository browser.