1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_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 |
---|
9 | SUBDIRS = . bootloader |
---|
10 | |
---|
11 | include $(top_srcdir)/../../../../automake/compile.am |
---|
12 | include $(top_srcdir)/../../bsp.am |
---|
13 | |
---|
14 | include_bspdir = $(includedir)/bsp |
---|
15 | |
---|
16 | dist_project_lib_DATA = bsp_specs |
---|
17 | |
---|
18 | include_HEADERS = include/bsp.h |
---|
19 | include_HEADERS += include/tm27.h |
---|
20 | |
---|
21 | nodist_include_HEADERS = include/bspopts.h |
---|
22 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
23 | DISTCLEANFILES = include/bspopts.h |
---|
24 | |
---|
25 | noinst_PROGRAMS = |
---|
26 | |
---|
27 | include_HEADERS += ../../powerpc/shared/include/nvram.h |
---|
28 | include_HEADERS += ../../shared/include/coverhd.h |
---|
29 | include_HEADERS += ../../shared/tod.h |
---|
30 | |
---|
31 | EXTRA_DIST = ../../powerpc/shared/start/start.S |
---|
32 | start.$(OBJEXT): ../../powerpc/shared/start/start.S |
---|
33 | $(CPPASCOMPILE) -o $@ -c $< |
---|
34 | project_lib_DATA = start.$(OBJEXT) |
---|
35 | |
---|
36 | EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S |
---|
37 | rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S |
---|
38 | $(CPPASCOMPILE) -o $@ -c $< |
---|
39 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
40 | |
---|
41 | EXTRA_DIST += ../../powerpc/shared/start/vectors_entry.S |
---|
42 | vectors_entry.$(OBJEXT): ../../powerpc/shared/start/vectors_entry.S |
---|
43 | $(CPPASCOMPILE) -o $@ -c $< |
---|
44 | project_lib_DATA += vectors_entry.$(OBJEXT) |
---|
45 | |
---|
46 | dist_project_lib_DATA += ../shared/startup/linkcmds |
---|
47 | |
---|
48 | startup_SOURCES = ../../powerpc/shared/startup/bspstart.c \ |
---|
49 | ../../powerpc/shared/startup/bspgetworkarea.c \ |
---|
50 | ../../powerpc/shared/showbats.c \ |
---|
51 | ../../powerpc/shared/startup/pretaskinghook.c \ |
---|
52 | ../../shared/bsppredriverhook.c \ |
---|
53 | ../../powerpc/shared/startup/zerobss.c \ |
---|
54 | ../../powerpc/shared/startup/pgtbl_setup.c \ |
---|
55 | ../../powerpc/shared/startup/pgtbl_activate.c \ |
---|
56 | ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \ |
---|
57 | ../../shared/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \ |
---|
58 | ../../shared/gnatinstallhandler.c |
---|
59 | tod_SOURCES = ../../shared/tod.c ../../powerpc/shared/tod/todcfg.c |
---|
60 | pclock_SOURCES = ../../powerpc/shared/clock/p_clock.c |
---|
61 | |
---|
62 | include_bsp_HEADERS = ../../powerpc/shared/console/consoleIo.h |
---|
63 | include_bsp_HEADERS += ../../powerpc/shared/console/uart.h |
---|
64 | |
---|
65 | # Needs conditional compilation |
---|
66 | polledIO_CPPFLAGS = -DSTATIC_LOG_ALLOC |
---|
67 | noinst_PROGRAMS += polledIO.rel |
---|
68 | polledIO_rel_SOURCES = ../../powerpc/shared/console/polled_io.c |
---|
69 | polledIO_rel_CPPFLAGS = $(AM_CPPFLAGS) $(polledIO_CPPFLAGS) |
---|
70 | polledIO_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
71 | |
---|
72 | console_SOURCES = \ |
---|
73 | ../../powerpc/shared/console/uart.c \ |
---|
74 | ../../powerpc/shared/console/console.c \ |
---|
75 | ../../powerpc/shared/console/inch.c \ |
---|
76 | ../../powerpc/shared/console/bspreset.c \ |
---|
77 | ../../powerpc/shared/console/consoleIo.h \ |
---|
78 | ../../powerpc/shared/console/keyboard.h \ |
---|
79 | ../../powerpc/shared/console/uart.h |
---|
80 | |
---|
81 | include_bsp_HEADERS += ../../powerpc/shared/irq/irq.h \ |
---|
82 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/irq_supp.h \ |
---|
83 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/vectors.h \ |
---|
84 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/ppc_exc_bspsupp.h |
---|
85 | |
---|
86 | irq_SOURCES = ../../powerpc/shared/irq/irq_init.c \ |
---|
87 | ../../powerpc/shared/irq/openpic_i8259_irq.c \ |
---|
88 | ../../powerpc/shared/irq/i8259.c ../../powerpc/shared/irq/irq.h |
---|
89 | |
---|
90 | include_bsp_HEADERS += ../../powerpc/shared/motorola/motorola.h |
---|
91 | motorola_SOURCES = ../../powerpc/shared/motorola/motorola.h \ |
---|
92 | ../../powerpc/shared/motorola/motorola.c |
---|
93 | |
---|
94 | include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h |
---|
95 | openpic_SOURCES = ../../powerpc/shared/openpic/openpic.h \ |
---|
96 | ../../powerpc/shared/openpic/openpic.c \ |
---|
97 | ../../powerpc/shared/openpic/openpic.h |
---|
98 | |
---|
99 | include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h |
---|
100 | pci_SOURCES = ../../powerpc/shared/pci/pci.c \ |
---|
101 | ../../powerpc/shared/pci/detect_raven_bridge.c \ |
---|
102 | ../../powerpc/shared/pci/generic_clear_hberrs.c \ |
---|
103 | ../../powerpc/shared/pci/pcifinddevice.c ../../powerpc/shared/pci/pci.h |
---|
104 | |
---|
105 | include_bsp_HEADERS += ../../powerpc/shared/residual/residual.h \ |
---|
106 | ../../powerpc/shared/residual/pnp.h |
---|
107 | residual_SOURCES = ../../powerpc/shared/residual/pnp.h \ |
---|
108 | ../../powerpc/shared/residual/residual.h \ |
---|
109 | ../../powerpc/shared/residual/residual.c |
---|
110 | |
---|
111 | include_bsp_HEADERS += ../../shared/vmeUniverse/vmeUniverse.h \ |
---|
112 | ../../shared/vmeUniverse/vme_am_defs.h \ |
---|
113 | ../../shared/vmeUniverse/VME.h \ |
---|
114 | ../../powerpc/shared/vme/VMEConfig.h \ |
---|
115 | ../../shared/vmeUniverse/vmeUniverseDMA.h\ |
---|
116 | ../../shared/vmeUniverse/bspVmeDmaList.h\ |
---|
117 | ../../shared/vmeUniverse/VMEDMA.h |
---|
118 | vme_SOURCES = ../../shared/vmeUniverse/vmeUniverse.c \ |
---|
119 | ../../shared/vmeUniverse/bspVmeDmaList.c \ |
---|
120 | ../../shared/vmeUniverse/vmeUniverse.h \ |
---|
121 | ../../shared/vmeUniverse/vme_am_defs.h \ |
---|
122 | ../../shared/vmeUniverse/VME.h \ |
---|
123 | ../../powerpc/shared/vme/vmeconfig.c \ |
---|
124 | ../../powerpc/shared/vme/vme_universe.c \ |
---|
125 | ../../powerpc/shared/vme/VMEConfig.h |
---|
126 | |
---|
127 | noinst_LIBRARIES = libbsp.a |
---|
128 | libbsp_a_SOURCES = $(startup_SOURCES) $(pclock_SOURCES) $(console_SOURCES) \ |
---|
129 | $(irq_SOURCES) $(openpic_SOURCES) $(pci_SOURCES) $(residual_SOURCES) \ |
---|
130 | $(motorola_SOURCES) $(tod_SOURCES) $(vme_SOURCES) |
---|
131 | |
---|
132 | libbsp_a_LIBADD = \ |
---|
133 | polledIO.rel \ |
---|
134 | ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \ |
---|
135 | ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \ |
---|
136 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \ |
---|
137 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \ |
---|
138 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel \ |
---|
139 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \ |
---|
140 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/irq_bspsupport.rel \ |
---|
141 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \ |
---|
142 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel |
---|
143 | |
---|
144 | EXTRA_DIST += BOOTING README.mtx603e README.MVME2100 README.MVME2300 \ |
---|
145 | README.MVME2400 \ |
---|
146 | README.OTHERBOARDS README.mcp750 README.MVME2307 README.dec21140 |
---|
147 | EXTRA_DIST += times.mcp750 times.mvme2307 |
---|
148 | |
---|
149 | include $(srcdir)/preinstall.am |
---|
150 | include $(top_srcdir)/../../../../automake/local.am |
---|