source: rtems/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 169480b, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 17, 2011 at 1:24:47 PM

2011-04-10 Kate Feng <feng@…>

PR 1786/bsps

  • Makefile.am: Add support for Altivec.
  • startup/bspstart.c, Makefile.am: Use shared/startup/zerobss.c instead.
  • make/custom/mvme5500.cfg: Change CPU_CFLAGS to "-mcpu=7450 -mtune=7450 -Dmpc7455"
  • irq/BSP_irq.c, pci/detect_host_bridge.c, pci.c, pcifinddevice.c: Remove warnings.
  • vme/VMEConfig.h, include/bsp.h: use VME shared IRQ handlers.
  • network/if_100MHz/GT64260eth.c: Recycle the Rx mbuf if there is any Rx error.
  • Property mode set to 100644
File size: 4.3 KB
Line 
1##
2## Makefile.am,v 1.8.4.1 2003/02/20 21:55:34 joel Exp
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7include $(top_srcdir)/../../../../automake/compile.am
8include $(top_srcdir)/../../bsp.am
9
10include_bspdir = $(includedir)/bsp
11
12dist_project_lib_DATA = bsp_specs
13
14include_HEADERS = include/bsp.h
15include_HEADERS += include/tm27.h
16
17nodist_include_HEADERS = include/bspopts.h
18nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
19DISTCLEANFILES = include/bspopts.h
20nodist_include_HEADERS += ../../shared/include/coverhd.h
21
22noinst_PROGRAMS =
23
24###
25dist_project_lib_DATA += ../shared/startup/linkcmds
26
27noinst_LIBRARIES = libbsp.a
28libbsp_a_SOURCES =
29
30# UNUSED
31EXTRA_DIST = startup/bootpstuff.c
32
33# startup
34libbsp_a_SOURCES += startup/bspstart.c \
35    ../../powerpc/shared/startup/pgtbl_setup.c startup/pgtbl_activate.c \
36    ../../powerpc/shared/startup/pretaskinghook.c \
37    ../../powerpc/shared/startup/zerobss.c \
38    ../../powerpc/shared/startup/bspgetworkarea.c \
39    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
40    ../../shared/bsppredriverhook.c startup/bspclean.c \
41    ../../shared/bsplibc.c ../../shared/bsppost.c \
42    ../../shared/gnatinstallhandler.c startup/bspreset.c \
43    ../../powerpc/shared/startup/probeMemEnd.c
44
45# pclock
46libbsp_a_SOURCES += ../../powerpc/shared/clock/p_clock.c
47
48include_bsp_HEADERS = ../../powerpc/shared/console/uart.h
49include_bsp_HEADERS += ../../powerpc/shared/console/consoleIo.h
50# console
51libbsp_a_SOURCES += ../../powerpc/shared/console/uart.c \
52    ../../powerpc/shared/console/console.c
53
54include_bsp_HEADERS += pci/gtpcireg.h pci/pci.h
55# pci
56libbsp_a_SOURCES += pci/pci.c pci/pci_interface.c pci/detect_host_bridge.c \
57    pci/pcifinddevice.c
58
59include_bsp_HEADERS += irq/irq.h
60# irq
61libbsp_a_SOURCES += irq/irq_init.c irq/BSP_irq.c
62
63nodist_include_HEADERS += ../../shared/tod.h
64# tod
65libbsp_a_SOURCES += ../../shared/tod.c tod/todcfg.c
66
67include_bsp_HEADERS += vectors/bspException.h
68include_bsp_HEADERS += \
69        ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/irq_supp.h
70
71# vectors
72libbsp_a_SOURCES += vectors/exceptionhandler.c \
73    ../../powerpc/shared/start/vectors_entry.S
74
75include_bsp_HEADERS += GT64260/bspMvme5500.h GT64260/gtreg.h \
76    GT64260/GT64260TWSI.h GT64260/VPD.h
77# GT64260
78libbsp_a_SOURCES += GT64260/GT64260TWSI.c GT64260/MVME5500I2C.c
79
80include_bsp_HEADERS += ../../shared/vmeUniverse/VME.h vme/VMEConfig.h \
81        ../../shared/vmeUniverse/vmeUniverse.h \
82        ../../shared/vmeUniverse/vmeUniverseDMA.h\
83        ../../shared/vmeUniverse/bspVmeDmaList.h\
84        ../../shared/vmeUniverse/VMEDMA.h \
85        ../../shared/vmeUniverse/vme_am_defs.h
86# vme
87libbsp_a_SOURCES += ../../shared/vmeUniverse/vmeUniverse.c\
88        ../shared/vme/vmeconfig.c ../../shared/vmeUniverse/bspVmeDmaList.c\
89        ../shared/vme/vme_universe.c
90
91if HAS_NETWORKING
92include_bsp_HEADERS += network/if_100MHz/GT64260eth.h \
93    network/if_100MHz/GT64260ethreg.h network/if_1GHz/if_wmreg.h \
94    network/if_1GHz/pcireg.h
95
96network_CPPFLAGS = -D_KERNEL -D__BSD_VISIBLE
97noinst_PROGRAMS += network.rel
98network_rel_SOURCES = network/if_100MHz/GT64260eth.c \
99    network/if_1GHz/if_wm.c network/if_1GHz/pci_map.c
100network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)
101network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
102endif
103
104EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
105rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
106        $(CPPASCOMPILE) -o $@ -c $<
107project_lib_DATA = rtems_crti.$(OBJEXT)
108
109noinst_PROGRAMS += mvme5500start.$(OBJEXT)
110mvme5500start___OBJEXT__SOURCES = ../shared/start/preload.S start/start.S
111mvme5500start___OBJEXT__CPPFLAGS = $(AM_CPPFLAGS)
112mvme5500start___OBJEXT__LDFLAGS = $(RTEMS_RELLDFLAGS)
113
114project_lib_DATA += mvme5500start.$(OBJEXT)
115
116libbsp_a_LIBADD = \
117    ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
118    ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \
119    ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
120    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
121    ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \
122    ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \
123    ../../../libcpu/@RTEMS_CPU@/@exceptions@/irq_bspsupport.rel \
124    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
125    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel\
126    ../../../libcpu/@RTEMS_CPU@/mpc6xx/altivec.rel
127
128if HAS_NETWORKING
129libbsp_a_LIBADD += network.rel
130endif
131
132include $(srcdir)/preinstall.am
133include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.