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 = . |
---|
10 | |
---|
11 | include $(top_srcdir)/../../../../automake/compile.am |
---|
12 | include $(top_srcdir)/../../bsp.am |
---|
13 | |
---|
14 | dist_project_lib_DATA = bsp_specs |
---|
15 | |
---|
16 | include_HEADERS = include/bsp.h |
---|
17 | |
---|
18 | nodist_include_HEADERS = include/bspopts.h |
---|
19 | DISTCLEANFILES = include/bspopts.h |
---|
20 | |
---|
21 | noinst_PROGRAMS = |
---|
22 | |
---|
23 | include_bspdir = $(includedir)/bsp |
---|
24 | |
---|
25 | include_HEADERS += ../../shared/include/coverhd.h |
---|
26 | include_HEADERS += ../../shared/tod.h |
---|
27 | |
---|
28 | project_lib_DATA = |
---|
29 | |
---|
30 | EXTRA_DIST = ./start/start.S |
---|
31 | start.$(OBJEXT): ./start/start.S |
---|
32 | $(CPPASCOMPILE) -o $@ -c $< |
---|
33 | |
---|
34 | EXTRA_DIST += ../shared/start/preload.S |
---|
35 | preload.$(OBJEXT): ../shared/start/preload.S |
---|
36 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
37 | |
---|
38 | EXTRA_DIST += ../shared/start/vectors_entry.S |
---|
39 | vectors_entry.$(OBJEXT): ../shared/start/vectors_entry.S |
---|
40 | $(CPPASCOMPILE) -o $@ -c $< |
---|
41 | |
---|
42 | motld_start.$(OBJEXT): preload.$(OBJEXT) vectors_entry.$(OBJEXT) \ |
---|
43 | start.$(OBJEXT) |
---|
44 | $(LD) -o $@ -r $^ |
---|
45 | |
---|
46 | project_lib_DATA += motld_start.$(OBJEXT) |
---|
47 | |
---|
48 | EXTRA_DIST += ../shared/start/rtems_crti.S |
---|
49 | rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S |
---|
50 | $(CPPASCOMPILE) -o $@ -c $< |
---|
51 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
52 | |
---|
53 | dist_project_lib_DATA += ../shared/startup/linkcmds |
---|
54 | |
---|
55 | build_date.c:: |
---|
56 | echo 'const char *BSP_build_date="'`date`'";' > $@ |
---|
57 | |
---|
58 | noinst_PROGRAMS += startup.rel |
---|
59 | startup_SOURCES = ./startup/bspstart.c build_date.c \ |
---|
60 | ./startup/misc.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 |
---|
66 | tod_SOURCES = ../../shared/tod.c tod/todcfg.c |
---|
67 | pclock_SOURCES = ../../powerpc/shared/clock/p_clock.c |
---|
68 | |
---|
69 | include_bsp_HEADERS = ../../powerpc/shared/console/uart.h |
---|
70 | console_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 | |
---|
75 | include_bsp_HEADERS += ./irq/irq.h |
---|
76 | irq_SOURCES = ./irq/irq_init.c \ |
---|
77 | ../../powerpc/shared/irq/openpic_i8259_irq.c \ |
---|
78 | ../../powerpc/shared/irq/irq.h |
---|
79 | |
---|
80 | include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h |
---|
81 | openpic_SOURCES = ../../powerpc/shared/openpic/openpic.h \ |
---|
82 | ../../powerpc/shared/openpic/openpic.c \ |
---|
83 | ../../powerpc/shared/openpic/openpic.h |
---|
84 | |
---|
85 | include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h |
---|
86 | pci_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 | |
---|
91 | include_bsp_HEADERS += ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/vectors.h |
---|
92 | include_bsp_HEADERS += ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/ppc_exc_bspsupp.h |
---|
93 | include_bsp_HEADERS += ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/irq_supp.h |
---|
94 | |
---|
95 | include_bsp_HEADERS += ./vme/VMEConfig.h \ |
---|
96 | ../../shared/vmeUniverse/vmeTsi148.h \ |
---|
97 | ../../shared/vmeUniverse/vme_am_defs.h \ |
---|
98 | ../../shared/vmeUniverse/VME.h \ |
---|
99 | ../../shared/vmeUniverse/vmeTsi148DMA.h\ |
---|
100 | ../../shared/vmeUniverse/bspVmeDmaList.h\ |
---|
101 | ../../shared/vmeUniverse/VMEDMA.h |
---|
102 | |
---|
103 | vme_SOURCES = ../../shared/vmeUniverse/vmeTsi148.c \ |
---|
104 | ../../shared/vmeUniverse/bspVmeDmaList.c \ |
---|
105 | ../../shared/vmeUniverse/vmeTsi148.h \ |
---|
106 | ../../shared/vmeUniverse/vme_am_defs.h \ |
---|
107 | ../../shared/vmeUniverse/VME.h \ |
---|
108 | ../../powerpc/shared/vme/vmeconfig.c \ |
---|
109 | ../../powerpc/shared/vme/vme_universe.c |
---|
110 | |
---|
111 | include_bsp_HEADERS += ../shared/flash/flashPgm.h \ |
---|
112 | ../shared/flash/flashPgmPvt.h |
---|
113 | flash_SOURCES = ../shared/flash/flash.c \ |
---|
114 | ../shared/flash/spansionFlash.c \ |
---|
115 | ./flash/flashcfg.c |
---|
116 | |
---|
117 | include_bsp_HEADERS += i2c/mpc8540_i2c_busdrv.h |
---|
118 | i2c_SOURCES = i2c/mpc8540_i2c.c i2c/i2c_init.c |
---|
119 | |
---|
120 | include_bsp_HEADERS += ../shared/motorola/vpd.h |
---|
121 | vpd_SOURCES = ../shared/motorola/vpd.c |
---|
122 | |
---|
123 | if HAS_NETWORKING |
---|
124 | include_bsp_HEADERS += network/if_tsec_pub.h |
---|
125 | noinst_PROGRAMS += network.rel |
---|
126 | network_rel_SOURCES = network/tsec.c |
---|
127 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
128 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
129 | endif |
---|
130 | |
---|
131 | noinst_LIBRARIES = libbsp.a |
---|
132 | libbsp_a_SOURCES = $(startup_SOURCES) $(pclock_SOURCES) $(console_SOURCES) \ |
---|
133 | $(openpic_SOURCES) $(pci_SOURCES) $(irq_SOURCES) $(i2c_SOURCES) \ |
---|
134 | $(tod_SOURCES) $(vpd_SOURCES) $(vme_SOURCES) $(flash_SOURCES) |
---|
135 | |
---|
136 | libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \ |
---|
137 | ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \ |
---|
138 | ../../../libcpu/@RTEMS_CPU@/e500/clock.rel \ |
---|
139 | ../../../libcpu/@RTEMS_CPU@/e500/timer.rel \ |
---|
140 | ../../../libcpu/@RTEMS_CPU@/e500/mmu.rel \ |
---|
141 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \ |
---|
142 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel \ |
---|
143 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \ |
---|
144 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/irq_bspsupport.rel |
---|
145 | |
---|
146 | if HAS_NETWORKING |
---|
147 | libbsp_a_LIBADD += network.rel |
---|
148 | endif |
---|
149 | |
---|
150 | EXTRA_DIST += LICENSE ChangeLog README KNOWN_PROBLEMS |
---|
151 | |
---|
152 | include $(srcdir)/preinstall.am |
---|
153 | include $(top_srcdir)/../../../../automake/local.am |
---|