source: rtems/c/src/lib/libbsp/powerpc/mvme3100/Makefile.am @ 704e371

4.104.11
Last change on this file since 704e371 was 704e371, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 15, 2008 at 10:05:08 PM

2008-09-15 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, include/bsp.h, include/bspopts.h.in, startup/bspstart.c: Add use of bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization.
  • Property mode set to 100644
File size: 5.1 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7# wrapup is the one that actually builds and installs the library
8# from the individual .rel files built in other directories
9SUBDIRS = .
10
11include $(top_srcdir)/../../../../automake/compile.am
12include $(top_srcdir)/../../bsp.am
13
14dist_project_lib_DATA = bsp_specs
15
16include_HEADERS = include/bsp.h
17include_HEADERS += ../../shared/include/tm27.h
18
19nodist_include_HEADERS = include/bspopts.h
20DISTCLEANFILES = include/bspopts.h
21
22noinst_PROGRAMS =
23
24include_bspdir = $(includedir)/bsp
25
26include_HEADERS += ../../shared/include/coverhd.h
27include_HEADERS += ../../shared/tod.h
28
29project_lib_DATA =
30
31EXTRA_DIST = start/start.S
32start.$(OBJEXT): start/start.S
33        $(CPPASCOMPILE) -o $@ -c $<
34
35EXTRA_DIST += ../shared/start/preload.S
36preload.$(OBJEXT): ../shared/start/preload.S
37        $(CPPASCOMPILE) -DASM -o $@ -c $<
38
39EXTRA_DIST += ../shared/start/vectors_entry.S
40vectors_entry.$(OBJEXT): ../shared/start/vectors_entry.S
41        $(CPPASCOMPILE) -o $@ -c $<
42
43motld_start.$(OBJEXT):  preload.$(OBJEXT) vectors_entry.$(OBJEXT) \
44    start.$(OBJEXT)
45        $(LD) -o $@ -r $^
46
47project_lib_DATA += motld_start.$(OBJEXT)
48
49EXTRA_DIST += ../shared/start/rtems_crti.S
50rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
51        $(CPPASCOMPILE) -o $@ -c $<
52project_lib_DATA += rtems_crti.$(OBJEXT)
53
54dist_project_lib_DATA += ../shared/startup/linkcmds
55
56build_date.c::
57        echo 'const char *BSP_build_date="'`date`'";' > $@
58
59startup_SOURCES = startup/bspstart.c build_date.c \
60    startup/misc.c ../../powerpc/shared/startup/bspgetworkarea.c \
61    ../../powerpc/shared/startup/pretaskinghook.c \
62    ../../powerpc/shared/startup/zerobss.c \
63    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
64    ../../shared/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \
65    ../../shared/gnatinstallhandler.c
66tod_SOURCES = ../../shared/tod.c tod/todcfg.c
67pclock_SOURCES = ../../powerpc/shared/clock/p_clock.c
68
69include_bsp_HEADERS = ../../powerpc/shared/console/uart.h
70console_SOURCES = ../../powerpc/shared/console/uart.c \
71    ../../powerpc/shared/console/console.c \
72    ../../powerpc/shared/console/consoleIo.h \
73    ../../powerpc/shared/console/uart.h
74
75include_bsp_HEADERS += irq/irq.h
76irq_SOURCES = irq/irq_init.c \
77    ../../powerpc/shared/irq/openpic_i8259_irq.c \
78    ../../powerpc/shared/irq/irq.h
79
80include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h
81openpic_SOURCES = ../../powerpc/shared/openpic/openpic.h \
82    ../../powerpc/shared/openpic/openpic.c \
83    ../../powerpc/shared/openpic/openpic.h
84
85include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h
86pci_SOURCES = ../../powerpc/shared/pci/pci.c \
87    pci/detect_host_bridge.c \
88    ../../powerpc/shared/pci/generic_clear_hberrs.c \
89    ../../powerpc/shared/pci/pcifinddevice.c ../../powerpc/shared/pci/pci.h
90
91include_bsp_HEADERS += \
92  ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/vectors.h \
93  ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/ppc_exc_bspsupp.h \
94  ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/irq_supp.h
95
96include_bsp_HEADERS += vme/VMEConfig.h \
97    ../../shared/vmeUniverse/vmeTsi148.h \
98    ../../shared/vmeUniverse/vme_am_defs.h \
99    ../../shared/vmeUniverse/VME.h \
100    ../../shared/vmeUniverse/vmeTsi148DMA.h\
101    ../../shared/vmeUniverse/bspVmeDmaList.h\
102    ../../shared/vmeUniverse/VMEDMA.h
103
104vme_SOURCES = ../../shared/vmeUniverse/vmeTsi148.c \
105    ../../shared/vmeUniverse/bspVmeDmaList.c \
106    ../../shared/vmeUniverse/vmeTsi148.h \
107    ../../shared/vmeUniverse/vme_am_defs.h \
108    ../../shared/vmeUniverse/VME.h \
109    ../../powerpc/shared/vme/vmeconfig.c \
110    ../../powerpc/shared/vme/vme_universe.c
111
112include_bsp_HEADERS += ../shared/flash/flashPgm.h \
113    ../shared/flash/flashPgmPvt.h
114flash_SOURCES = ../shared/flash/flash.c \
115    ../shared/flash/spansionFlash.c \
116    flash/flashcfg.c
117
118include_bsp_HEADERS += i2c/mpc8540_i2c_busdrv.h
119i2c_SOURCES = i2c/mpc8540_i2c.c i2c/i2c_init.c
120
121include_bsp_HEADERS += ../shared/motorola/vpd.h
122vpd_SOURCES = ../shared/motorola/vpd.c
123
124if HAS_NETWORKING
125include_bsp_HEADERS += network/if_tsec_pub.h
126noinst_PROGRAMS += network.rel
127network_rel_SOURCES = network/tsec.c
128network_rel_CPPFLAGS = $(AM_CPPFLAGS)
129network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
130endif
131
132noinst_LIBRARIES = libbsp.a
133libbsp_a_SOURCES = $(startup_SOURCES) $(pclock_SOURCES) $(console_SOURCES) \
134    $(openpic_SOURCES) $(pci_SOURCES) $(irq_SOURCES) $(i2c_SOURCES) \
135    $(tod_SOURCES) $(vpd_SOURCES) $(vme_SOURCES) $(flash_SOURCES)
136
137libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
138    ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \
139    ../../../libcpu/@RTEMS_CPU@/e500/clock.rel \
140    ../../../libcpu/@RTEMS_CPU@/e500/timer.rel \
141    ../../../libcpu/@RTEMS_CPU@/e500/mmu.rel \
142    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
143    ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel \
144    ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \
145    ../../../libcpu/@RTEMS_CPU@/@exceptions@/irq_bspsupport.rel
146
147if HAS_NETWORKING
148libbsp_a_LIBADD += network.rel
149endif
150
151EXTRA_DIST += LICENSE ChangeLog README KNOWN_PROBLEMS
152
153include $(srcdir)/preinstall.am
154include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.