[df49c60] | 1 | ## |
---|
[4e36a2f] | 2 | ## $Id$ |
---|
[df49c60] | 3 | ## |
---|
[4e36a2f] | 4 | |
---|
[fe8bc62f] | 5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
[4e36a2f] | 6 | |
---|
| 7 | # wrapup is the one that actually builds and installs the library |
---|
[23090f33] | 8 | # from the individual .rel files built in other directories |
---|
[3f5232a] | 9 | SUBDIRS = . bootloader @exceptions@ wrapup |
---|
[4e36a2f] | 10 | |
---|
[3f5232a] | 11 | include $(top_srcdir)/../../../../automake/compile.am |
---|
[4e36a2f] | 12 | include $(top_srcdir)/../../bsp.am |
---|
| 13 | |
---|
[2a7f9a28] | 14 | dist_project_lib_DATA = bsp_specs |
---|
| 15 | |
---|
| 16 | include_HEADERS = include/bsp.h |
---|
[3defec6] | 17 | include_HEADERS += include/tm27.h |
---|
[71cbb66] | 18 | |
---|
[2a7f9a28] | 19 | nodist_include_HEADERS = include/bspopts.h |
---|
[71cbb66] | 20 | DISTCLEANFILES = include/bspopts.h |
---|
[2a7f9a28] | 21 | |
---|
[71cbb66] | 22 | noinst_PROGRAMS = |
---|
[3f5232a] | 23 | |
---|
[23090f33] | 24 | include_bspdir = $(includedir)/bsp |
---|
| 25 | |
---|
[da0a573] | 26 | include_HEADERS += ../../powerpc/shared/include/nvram.h |
---|
| 27 | include_HEADERS += ../../shared/include/coverhd.h |
---|
[f9877d25] | 28 | include_HEADERS += ../../shared/tod.h |
---|
[3f5232a] | 29 | |
---|
| 30 | EXTRA_DIST = ../../powerpc/shared/start/start.S |
---|
[71cbb66] | 31 | start.$(OBJEXT): ../../powerpc/shared/start/start.S |
---|
[c24d7c84] | 32 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
[71cbb66] | 33 | project_lib_DATA = start.$(OBJEXT) |
---|
[3f5232a] | 34 | |
---|
| 35 | EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S |
---|
[71cbb66] | 36 | rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S |
---|
[c24d7c84] | 37 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
[71cbb66] | 38 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
[3f5232a] | 39 | |
---|
| 40 | dist_project_lib_DATA += startup/linkcmds |
---|
| 41 | |
---|
[71cbb66] | 42 | noinst_PROGRAMS += startup.rel |
---|
[3f5232a] | 43 | startup_rel_SOURCES = ../../powerpc/shared/startup/bspstart.c \ |
---|
| 44 | ../../powerpc/shared/startup/pgtbl_setup.c \ |
---|
| 45 | ../../powerpc/shared/startup/pgtbl_activate.c \ |
---|
| 46 | ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \ |
---|
| 47 | ../../shared/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \ |
---|
| 48 | ../../shared/main.c ../../shared/gnatinstallhandler.c |
---|
[844609f9] | 49 | startup_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[3f5232a] | 50 | startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 51 | |
---|
[71cbb66] | 52 | noinst_PROGRAMS += tod.rel |
---|
[f9877d25] | 53 | tod_rel_SOURCES = ../../shared/tod.c ../../powerpc/shared/tod/todcfg.c |
---|
[844609f9] | 54 | tod_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[f9877d25] | 55 | tod_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 56 | |
---|
[71cbb66] | 57 | noinst_PROGRAMS += pclock.rel |
---|
[3f5232a] | 58 | pclock_rel_SOURCES = ../../powerpc/shared/clock/p_clock.c |
---|
[844609f9] | 59 | pclock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[3f5232a] | 60 | pclock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 61 | |
---|
[da0a573] | 62 | include_bsp_HEADERS = ../../powerpc/shared/console/consoleIo.h |
---|
| 63 | include_bsp_HEADERS += ../../powerpc/shared/console/uart.h |
---|
| 64 | |
---|
[3f5232a] | 65 | console_CPPFLAGS = -DSTATIC_LOG_ALLOC |
---|
[71cbb66] | 66 | noinst_PROGRAMS += console.rel |
---|
[3f5232a] | 67 | console_rel_SOURCES = ../../powerpc/shared/console/polled_io.c \ |
---|
| 68 | ../../powerpc/shared/console/uart.c \ |
---|
| 69 | ../../powerpc/shared/console/console.c \ |
---|
| 70 | ../../powerpc/shared/console/inch.c \ |
---|
| 71 | ../../powerpc/shared/console/reboot.c \ |
---|
| 72 | ../../powerpc/shared/console/consoleIo.h \ |
---|
| 73 | ../../powerpc/shared/console/keyboard.h \ |
---|
| 74 | ../../powerpc/shared/console/uart.h |
---|
[9d83387b] | 75 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(console_CPPFLAGS) |
---|
[3f5232a] | 76 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 77 | |
---|
[da0a573] | 78 | include_bsp_HEADERS += ../../powerpc/shared/irq/irq.h |
---|
[3f5232a] | 79 | |
---|
[71cbb66] | 80 | noinst_PROGRAMS += irq.rel |
---|
[3f5232a] | 81 | irq_rel_SOURCES = ../../powerpc/shared/irq/irq_init.c \ |
---|
| 82 | ../../powerpc/shared/irq/i8259.c ../../powerpc/shared/irq/irq.c \ |
---|
| 83 | ../../powerpc/shared/irq/irq_asm.S ../../powerpc/shared/irq/irq.h |
---|
[844609f9] | 84 | irq_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[3f5232a] | 85 | irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 86 | |
---|
[da0a573] | 87 | include_bsp_HEADERS += ../../powerpc/shared/motorola/motorola.h |
---|
[3f5232a] | 88 | |
---|
[71cbb66] | 89 | noinst_PROGRAMS += motorola.rel |
---|
[3f5232a] | 90 | motorola_rel_SOURCES = ../../powerpc/shared/motorola/motorola.h \ |
---|
| 91 | ../../powerpc/shared/motorola/motorola.c |
---|
[844609f9] | 92 | motorola_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[3f5232a] | 93 | motorola_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 94 | |
---|
[da0a573] | 95 | include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h |
---|
[3f5232a] | 96 | |
---|
[71cbb66] | 97 | noinst_PROGRAMS += openpic.rel |
---|
[3f5232a] | 98 | openpic_rel_SOURCES = ../../powerpc/shared/openpic/openpic.h \ |
---|
[da0a573] | 99 | ../../powerpc/shared/openpic/openpic.c \ |
---|
| 100 | ../../powerpc/shared/openpic/openpic.h |
---|
| 101 | |
---|
[844609f9] | 102 | openpic_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[3f5232a] | 103 | openpic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 104 | |
---|
[da0a573] | 105 | include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h |
---|
[23090f33] | 106 | |
---|
[71cbb66] | 107 | noinst_PROGRAMS += pci.rel |
---|
[3f5232a] | 108 | pci_rel_SOURCES = ../../powerpc/shared/pci/pci.c \ |
---|
| 109 | ../../powerpc/shared/pci/detect_raven_bridge.c \ |
---|
| 110 | ../../powerpc/shared/pci/pcifinddevice.c ../../powerpc/shared/pci/pci.h |
---|
[844609f9] | 111 | pci_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[3f5232a] | 112 | pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 113 | |
---|
[da0a573] | 114 | include_bsp_HEADERS += ../../powerpc/shared/residual/residual.h \ |
---|
| 115 | ../../powerpc/shared/residual/pnp.h |
---|
| 116 | |
---|
[71cbb66] | 117 | noinst_PROGRAMS += residual.rel |
---|
[3f5232a] | 118 | residual_rel_SOURCES = ../../powerpc/shared/residual/pnp.h \ |
---|
| 119 | ../../powerpc/shared/residual/residual.h \ |
---|
| 120 | ../../powerpc/shared/residual/residual.c |
---|
[844609f9] | 121 | residual_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[3f5232a] | 122 | residual_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 123 | |
---|
[da0a573] | 124 | include_bsp_HEADERS += ../../powerpc/shared/vectors/vectors.h |
---|
[3f5232a] | 125 | |
---|
[71cbb66] | 126 | noinst_PROGRAMS += vectors.rel |
---|
[3f5232a] | 127 | vectors_rel_SOURCES = ../../powerpc/shared/vectors/vectors.h \ |
---|
| 128 | ../../powerpc/shared/vectors/vectors_init.c \ |
---|
| 129 | ../../powerpc/shared/vectors/vectors.S |
---|
[844609f9] | 130 | vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[3f5232a] | 131 | vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 132 | |
---|
[da0a573] | 133 | include_bsp_HEADERS += ../../shared/vmeUniverse/vmeUniverse.h \ |
---|
[3f5232a] | 134 | ../../powerpc/shared/vme/VMEConfig.h ../../powerpc/shared/vme/VME.h |
---|
| 135 | |
---|
[71cbb66] | 136 | noinst_PROGRAMS += vme.rel |
---|
[3f5232a] | 137 | vme_rel_SOURCES = ../../shared/vmeUniverse/vmeUniverse.c \ |
---|
| 138 | ../../shared/vmeUniverse/vmeUniverse.h \ |
---|
| 139 | ../../powerpc/shared/vme/vmeconfig.c \ |
---|
| 140 | ../../powerpc/shared/vme/VMEConfig.h ../../powerpc/shared/vme/VME.h |
---|
[844609f9] | 141 | vme_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[3f5232a] | 142 | vme_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 143 | |
---|
| 144 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
| 145 | |
---|
[f9877d25] | 146 | EXTRA_DIST += BOOTING README.mtx603e README.MVME2100 README.MVME2300 \ |
---|
| 147 | README.OTHERBOARDS README.mcp750 README.MVME2307 README.dec21140 |
---|
[23090f33] | 148 | EXTRA_DIST += times.mcp750 times.mvme2307 |
---|
| 149 | |
---|
[518ce392] | 150 | PREINSTALL_DIRS = |
---|
[2a7f9a28] | 151 | PREINSTALL_FILES = |
---|
[3f5232a] | 152 | TMPINSTALL_FILES = |
---|
[518ce392] | 153 | |
---|
[2a7f9a28] | 154 | $(PROJECT_INCLUDE)/$(dirstamp): |
---|
| 155 | @$(mkdir_p) $(PROJECT_INCLUDE) |
---|
| 156 | @: > $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 157 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 158 | |
---|
| 159 | $(PROJECT_LIB)/$(dirstamp): |
---|
| 160 | @$(mkdir_p) $(PROJECT_LIB) |
---|
| 161 | @: > $(PROJECT_LIB)/$(dirstamp) |
---|
| 162 | PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp) |
---|
| 163 | |
---|
| 164 | $(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp) |
---|
| 165 | $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs |
---|
| 166 | PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs |
---|
| 167 | |
---|
| 168 | $(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 169 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h |
---|
| 170 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h |
---|
| 171 | |
---|
[3defec6] | 172 | $(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 173 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h |
---|
| 174 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h |
---|
| 175 | |
---|
[2a7f9a28] | 176 | $(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 177 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h |
---|
| 178 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h |
---|
| 179 | |
---|
[f42a7891] | 180 | $(PROJECT_INCLUDE)/bsp/$(dirstamp): |
---|
[f2bd16e] | 181 | @$(mkdir_p) $(PROJECT_INCLUDE)/bsp |
---|
[f42a7891] | 182 | @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
[518ce392] | 183 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
[23090f33] | 184 | |
---|
[3f5232a] | 185 | $(PROJECT_INCLUDE)/nvram.h: ../../powerpc/shared/include/nvram.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
[f42a7891] | 186 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/nvram.h |
---|
| 187 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/nvram.h |
---|
| 188 | |
---|
| 189 | $(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 190 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h |
---|
| 191 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h |
---|
| 192 | |
---|
[f9877d25] | 193 | $(PROJECT_INCLUDE)/tod.h: ../../shared/tod.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 194 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tod.h |
---|
| 195 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/tod.h |
---|
| 196 | |
---|
[71cbb66] | 197 | $(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp) |
---|
| 198 | $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT) |
---|
| 199 | TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT) |
---|
[3f5232a] | 200 | |
---|
[71cbb66] | 201 | $(PROJECT_LIB)/rtems_crti.$(OBJEXT): rtems_crti.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp) |
---|
| 202 | $(INSTALL_DATA) $< $(PROJECT_LIB)/rtems_crti.$(OBJEXT) |
---|
| 203 | TMPINSTALL_FILES += $(PROJECT_LIB)/rtems_crti.$(OBJEXT) |
---|
[3f5232a] | 204 | |
---|
| 205 | $(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp) |
---|
| 206 | $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds |
---|
[2a7f9a28] | 207 | PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds |
---|
[3f5232a] | 208 | |
---|
[da0a573] | 209 | $(PROJECT_INCLUDE)/bsp/consoleIo.h: ../../powerpc/shared/console/consoleIo.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
| 210 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/consoleIo.h |
---|
| 211 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/consoleIo.h |
---|
| 212 | |
---|
| 213 | $(PROJECT_INCLUDE)/bsp/uart.h: ../../powerpc/shared/console/uart.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
| 214 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/uart.h |
---|
| 215 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/uart.h |
---|
| 216 | |
---|
[3f5232a] | 217 | $(PROJECT_INCLUDE)/bsp/irq.h: ../../powerpc/shared/irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
[f42a7891] | 218 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h |
---|
[23090f33] | 219 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h |
---|
| 220 | |
---|
[3f5232a] | 221 | $(PROJECT_INCLUDE)/bsp/motorola.h: ../../powerpc/shared/motorola/motorola.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
[f42a7891] | 222 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/motorola.h |
---|
[23090f33] | 223 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/motorola.h |
---|
| 224 | |
---|
[3f5232a] | 225 | $(PROJECT_INCLUDE)/bsp/openpic.h: ../../powerpc/shared/openpic/openpic.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
| 226 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/openpic.h |
---|
| 227 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/openpic.h |
---|
| 228 | |
---|
| 229 | $(PROJECT_INCLUDE)/bsp/pci.h: ../../powerpc/shared/pci/pci.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
| 230 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pci.h |
---|
| 231 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pci.h |
---|
| 232 | |
---|
[da0a573] | 233 | $(PROJECT_INCLUDE)/bsp/residual.h: ../../powerpc/shared/residual/residual.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
| 234 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/residual.h |
---|
| 235 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/residual.h |
---|
| 236 | |
---|
| 237 | $(PROJECT_INCLUDE)/bsp/pnp.h: ../../powerpc/shared/residual/pnp.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
| 238 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pnp.h |
---|
| 239 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pnp.h |
---|
| 240 | |
---|
[3f5232a] | 241 | $(PROJECT_INCLUDE)/bsp/vectors.h: ../../powerpc/shared/vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
| 242 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h |
---|
| 243 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h |
---|
| 244 | |
---|
| 245 | $(PROJECT_INCLUDE)/bsp/vmeUniverse.h: ../../shared/vmeUniverse/vmeUniverse.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
| 246 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vmeUniverse.h |
---|
| 247 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vmeUniverse.h |
---|
| 248 | |
---|
| 249 | $(PROJECT_INCLUDE)/bsp/VMEConfig.h: ../../powerpc/shared/vme/VMEConfig.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
| 250 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VMEConfig.h |
---|
| 251 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VMEConfig.h |
---|
| 252 | |
---|
| 253 | $(PROJECT_INCLUDE)/bsp/VME.h: ../../powerpc/shared/vme/VME.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
| 254 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VME.h |
---|
| 255 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VME.h |
---|
| 256 | |
---|
[71cbb66] | 257 | CLEANFILES = $(PREINSTALL_FILES) |
---|
| 258 | DISTCLEANFILES += $(PREINSTALL_DIRS) |
---|
[3f5232a] | 259 | CLEANFILES += $(TMPINSTALL_FILES) |
---|
[c56c440] | 260 | |
---|
[6badcc2] | 261 | include $(top_srcdir)/../../../../automake/subdirs.am |
---|
| 262 | include $(top_srcdir)/../../../../automake/local.am |
---|