[b599faa] | 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 |
---|
[6a325800] | 17 | include_HEADERS += ../../shared/include/tm27.h |
---|
[b599faa] | 18 | |
---|
| 19 | nodist_include_HEADERS = include/bspopts.h |
---|
| 20 | DISTCLEANFILES = include/bspopts.h |
---|
| 21 | |
---|
| 22 | noinst_PROGRAMS = |
---|
| 23 | |
---|
| 24 | include_bspdir = $(includedir)/bsp |
---|
| 25 | |
---|
| 26 | include_HEADERS += ../../shared/include/coverhd.h |
---|
| 27 | include_HEADERS += ../../shared/tod.h |
---|
| 28 | |
---|
| 29 | project_lib_DATA = |
---|
| 30 | |
---|
[b95cd64] | 31 | EXTRA_DIST = start/start.S |
---|
| 32 | start.$(OBJEXT): start/start.S |
---|
[b599faa] | 33 | $(CPPASCOMPILE) -o $@ -c $< |
---|
| 34 | |
---|
[3563d32] | 35 | EXTRA_DIST += ../shared/start/preload.S |
---|
| 36 | preload.$(OBJEXT): ../shared/start/preload.S |
---|
[b599faa] | 37 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
| 38 | |
---|
[3563d32] | 39 | EXTRA_DIST += ../shared/start/vectors_entry.S |
---|
| 40 | vectors_entry.$(OBJEXT): ../shared/start/vectors_entry.S |
---|
| 41 | $(CPPASCOMPILE) -o $@ -c $< |
---|
| 42 | |
---|
[1d0ee80e] | 43 | motld_start.$(OBJEXT): preload.$(OBJEXT) vectors_entry.$(OBJEXT) \ |
---|
| 44 | start.$(OBJEXT) |
---|
[b599faa] | 45 | $(LD) -o $@ -r $^ |
---|
| 46 | |
---|
| 47 | project_lib_DATA += motld_start.$(OBJEXT) |
---|
| 48 | |
---|
[3563d32] | 49 | EXTRA_DIST += ../shared/start/rtems_crti.S |
---|
[b599faa] | 50 | rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S |
---|
| 51 | $(CPPASCOMPILE) -o $@ -c $< |
---|
| 52 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
| 53 | |
---|
| 54 | dist_project_lib_DATA += ../shared/startup/linkcmds |
---|
| 55 | |
---|
| 56 | build_date.c:: |
---|
| 57 | echo 'const char *BSP_build_date="'`date`'";' > $@ |
---|
| 58 | |
---|
[b95cd64] | 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 \ |
---|
[b599faa] | 63 | ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \ |
---|
[83e392b4] | 64 | ../../shared/bsplibc.c ../../shared/bsppost.c \ |
---|
[b599faa] | 65 | ../../shared/gnatinstallhandler.c |
---|
[1d0ee80e] | 66 | tod_SOURCES = ../../shared/tod.c tod/todcfg.c |
---|
| 67 | pclock_SOURCES = ../../powerpc/shared/clock/p_clock.c |
---|
[b599faa] | 68 | |
---|
| 69 | include_bsp_HEADERS = ../../powerpc/shared/console/uart.h |
---|
[1d0ee80e] | 70 | console_SOURCES = ../../powerpc/shared/console/uart.c \ |
---|
[b599faa] | 71 | ../../powerpc/shared/console/console.c \ |
---|
| 72 | ../../powerpc/shared/console/consoleIo.h \ |
---|
| 73 | ../../powerpc/shared/console/uart.h |
---|
| 74 | |
---|
[b95cd64] | 75 | include_bsp_HEADERS += irq/irq.h |
---|
| 76 | irq_SOURCES = irq/irq_init.c \ |
---|
[1d0ee80e] | 77 | ../../powerpc/shared/irq/openpic_i8259_irq.c \ |
---|
[b599faa] | 78 | ../../powerpc/shared/irq/irq.h |
---|
| 79 | |
---|
| 80 | include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h |
---|
[1d0ee80e] | 81 | openpic_SOURCES = ../../powerpc/shared/openpic/openpic.h \ |
---|
[b599faa] | 82 | ../../powerpc/shared/openpic/openpic.c \ |
---|
| 83 | ../../powerpc/shared/openpic/openpic.h |
---|
| 84 | |
---|
| 85 | include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h |
---|
[1d0ee80e] | 86 | pci_SOURCES = ../../powerpc/shared/pci/pci.c \ |
---|
[b95cd64] | 87 | pci/detect_host_bridge.c \ |
---|
[b599faa] | 88 | ../../powerpc/shared/pci/generic_clear_hberrs.c \ |
---|
| 89 | ../../powerpc/shared/pci/pcifinddevice.c ../../powerpc/shared/pci/pci.h |
---|
| 90 | |
---|
[69ab847a] | 91 | include_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 |
---|
[b599faa] | 95 | |
---|
[b95cd64] | 96 | include_bsp_HEADERS += vme/VMEConfig.h \ |
---|
| 97 | ../../shared/vmeUniverse/vmeTsi148.h \ |
---|
[b599faa] | 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 | |
---|
[1d0ee80e] | 104 | vme_SOURCES = ../../shared/vmeUniverse/vmeTsi148.c \ |
---|
[b599faa] | 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 | |
---|
| 112 | include_bsp_HEADERS += ../shared/flash/flashPgm.h \ |
---|
[b95cd64] | 113 | ../shared/flash/flashPgmPvt.h |
---|
[1d0ee80e] | 114 | flash_SOURCES = ../shared/flash/flash.c \ |
---|
[b95cd64] | 115 | ../shared/flash/spansionFlash.c \ |
---|
| 116 | flash/flashcfg.c |
---|
[b599faa] | 117 | |
---|
| 118 | include_bsp_HEADERS += i2c/mpc8540_i2c_busdrv.h |
---|
[1d0ee80e] | 119 | i2c_SOURCES = i2c/mpc8540_i2c.c i2c/i2c_init.c |
---|
[b599faa] | 120 | |
---|
| 121 | include_bsp_HEADERS += ../shared/motorola/vpd.h |
---|
[1d0ee80e] | 122 | vpd_SOURCES = ../shared/motorola/vpd.c |
---|
[b599faa] | 123 | |
---|
[1d0ee80e] | 124 | if HAS_NETWORKING |
---|
[b599faa] | 125 | include_bsp_HEADERS += network/if_tsec_pub.h |
---|
| 126 | noinst_PROGRAMS += network.rel |
---|
| 127 | network_rel_SOURCES = network/tsec.c |
---|
| 128 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 129 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
[1d0ee80e] | 130 | endif |
---|
[b599faa] | 131 | |
---|
| 132 | noinst_LIBRARIES = libbsp.a |
---|
[1d0ee80e] | 133 | libbsp_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) |
---|
[b599faa] | 136 | |
---|
[1d0ee80e] | 137 | libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \ |
---|
[b599faa] | 138 | ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \ |
---|
| 139 | ../../../libcpu/@RTEMS_CPU@/e500/clock.rel \ |
---|
| 140 | ../../../libcpu/@RTEMS_CPU@/e500/timer.rel \ |
---|
[9621c3a3] | 141 | ../../../libcpu/@RTEMS_CPU@/e500/mmu.rel \ |
---|
[b599faa] | 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 | |
---|
[1d0ee80e] | 147 | if HAS_NETWORKING |
---|
| 148 | libbsp_a_LIBADD += network.rel |
---|
| 149 | endif |
---|
| 150 | |
---|
[b599faa] | 151 | EXTRA_DIST += LICENSE ChangeLog README KNOWN_PROBLEMS |
---|
| 152 | |
---|
| 153 | include $(srcdir)/preinstall.am |
---|
| 154 | include $(top_srcdir)/../../../../automake/local.am |
---|