[bec7ba52] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
| 4 | |
---|
| 5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
| 6 | |
---|
| 7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
| 8 | include $(top_srcdir)/../../bsp.am |
---|
| 9 | |
---|
| 10 | dist_project_lib_DATA = bsp_specs |
---|
| 11 | |
---|
| 12 | include_HEADERS = include/bsp.h |
---|
| 13 | include_HEADERS += include/tm27.h |
---|
[c468e489] | 14 | include_HEADERS += include/rasta.h |
---|
| 15 | include_HEADERS += include/cchip.h |
---|
[4d3933b3] | 16 | include_HEADERS += ../../sparc/shared/include/ambapp.h |
---|
[2f1d801] | 17 | include_HEADERS += ../../sparc/shared/include/grspw.h |
---|
| 18 | include_HEADERS += ../../sparc/shared/include/grspw_pci.h |
---|
| 19 | include_HEADERS += ../../sparc/shared/include/grspw_rasta.h |
---|
| 20 | include_HEADERS += ../../sparc/shared/include/occan.h |
---|
| 21 | include_HEADERS += ../../sparc/shared/include/occan_pci.h |
---|
| 22 | include_HEADERS += ../../sparc/shared/include/grcan.h |
---|
| 23 | include_HEADERS += ../../sparc/shared/include/grcan_rasta.h |
---|
| 24 | include_HEADERS += ../../sparc/shared/include/apbuart.h |
---|
| 25 | include_HEADERS += ../../sparc/shared/include/apbuart_pci.h |
---|
| 26 | include_HEADERS += ../../sparc/shared/include/apbuart_rasta.h |
---|
| 27 | include_HEADERS += ../../sparc/shared/include/b1553brm.h |
---|
| 28 | include_HEADERS += ../../sparc/shared/include/b1553brm_pci.h |
---|
| 29 | include_HEADERS += ../../sparc/shared/include/b1553brm_rasta.h |
---|
[c468e489] | 30 | include_HEADERS += ../../sparc/shared/include/debug_defs.h |
---|
| 31 | include_HEADERS += ../../sparc/shared/include/pci.h |
---|
[bec7ba52] | 32 | |
---|
| 33 | nodist_include_HEADERS = include/bspopts.h |
---|
| 34 | DISTCLEANFILES = include/bspopts.h |
---|
| 35 | |
---|
| 36 | noinst_PROGRAMS = |
---|
| 37 | |
---|
| 38 | # wrapup is the one that actually builds and installs the library |
---|
| 39 | # from the individual .rel files built in other directories |
---|
| 40 | SUBDIRS = . tools |
---|
| 41 | |
---|
| 42 | include_HEADERS += include/leon.h |
---|
| 43 | include_HEADERS += include/coverhd.h |
---|
| 44 | |
---|
| 45 | EXTRA_DIST = ../../sparc/shared/start.S |
---|
| 46 | start.$(OBJEXT): ../../sparc/shared/start.S |
---|
[57357d9] | 47 | $(CPPASCOMPILE) -o $@ -c $< |
---|
[bec7ba52] | 48 | |
---|
| 49 | project_lib_DATA = start.$(OBJEXT) |
---|
| 50 | |
---|
| 51 | dist_project_lib_DATA += startup/linkcmds |
---|
| 52 | |
---|
[5e5d0b1] | 53 | startup_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \ |
---|
[2f1d801] | 54 | ../../shared/bsppost.c ../../shared/bsppredriverhook.c \ |
---|
[182674ed] | 55 | ../../sparc/shared/bspgetworkarea.c ../../sparc/shared/bspstart.c \ |
---|
| 56 | ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \ |
---|
| 57 | startup/spurious.c |
---|
[5e5d0b1] | 58 | gnatsupp_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c |
---|
| 59 | console_SOURCES = console/console.c console/debugputs.c |
---|
| 60 | clock_SOURCES = clock/ckinit.c |
---|
[c468e489] | 61 | # AMBA PnP Scanning |
---|
[5e5d0b1] | 62 | amba_SOURCES = ../../sparc/shared/amba/ambapp.c |
---|
[c468e489] | 63 | # PCI |
---|
[5e5d0b1] | 64 | pci_SOURCES = pci/pci.c ../../sparc/shared/pci/pcifinddevice.c |
---|
[c468e489] | 65 | # RASTA Kit |
---|
[5e5d0b1] | 66 | rasta_SOURCES = rasta/rasta.c |
---|
[c468e489] | 67 | # Companion Chip Kit |
---|
[5e5d0b1] | 68 | cchip_SOURCES = cchip/cchip.c |
---|
[c468e489] | 69 | # B1553BRM |
---|
[5e5d0b1] | 70 | brm_SOURCES = ../../sparc/shared/1553/b1553brm.c \ |
---|
| 71 | ../../sparc/shared/1553/b1553brm_pci.c \ |
---|
| 72 | ../../sparc/shared/1553/b1553brm_rasta.c |
---|
[c468e489] | 73 | # CAN |
---|
[5e5d0b1] | 74 | can_SOURCES = ../../sparc/shared/can/occan.c \ |
---|
| 75 | ../../sparc/shared/can/occan_pci.c \ |
---|
| 76 | ../../sparc/shared/can/grcan.c \ |
---|
| 77 | ../../sparc/shared/can/grcan_rasta.c |
---|
[c468e489] | 78 | # SpaceWire |
---|
[5e5d0b1] | 79 | spw_SOURCES = ../../sparc/shared/spw/grspw.c \ |
---|
| 80 | ../../sparc/shared/spw/grspw_pci.c ../../sparc/shared/spw/grspw_rasta.c |
---|
[c468e489] | 81 | # UART (RAW) |
---|
[5e5d0b1] | 82 | uart_SOURCES = ../../sparc/shared/uart/apbuart.c \ |
---|
| 83 | ../../sparc/shared/uart/apbuart_pci.c \ |
---|
| 84 | ../../sparc/shared/uart/apbuart_rasta.c |
---|
[dd7f591] | 85 | # I2CMST |
---|
| 86 | include_HEADERS += ../../sparc/shared/include/i2cmst.h |
---|
[5e5d0b1] | 87 | i2cmst_SOURCES = ../../sparc/shared/i2c/i2cmst.c |
---|
| 88 | |
---|
| 89 | timer_SOURCES = timer/timer.c |
---|
[c468e489] | 90 | |
---|
[bec7ba52] | 91 | if HAS_NETWORKING |
---|
| 92 | noinst_PROGRAMS += leon_smc91111.rel |
---|
| 93 | leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c |
---|
| 94 | leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 95 | leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
| 96 | leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 97 | endif |
---|
| 98 | |
---|
| 99 | if HAS_NETWORKING |
---|
| 100 | noinst_PROGRAMS += leon_open_eth.rel |
---|
| 101 | leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c |
---|
| 102 | leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 103 | leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
| 104 | leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 105 | endif |
---|
| 106 | |
---|
| 107 | noinst_LIBRARIES = libbsp.a |
---|
[5e5d0b1] | 108 | libbsp_a_SOURCES = $(startup_SOURCES) $(gnatsupp_SOURCES) $(console_SOURCES) \ |
---|
| 109 | $(clock_SOURCES) $(amba_SOURCES) $(pci_SOURCES) $(rasta_SOURCES) \ |
---|
| 110 | $(cchip_SOURCES) $(brm_SOURCES) $(can_SOURCES) $(spw_SOURCES) \ |
---|
| 111 | $(uart_SOURCES) $(i2cmst_SOURCES) $(timer_SOURCES) |
---|
| 112 | |
---|
| 113 | libbsp_a_LIBADD = \ |
---|
| 114 | ../../../libcpu/@RTEMS_CPU@/cache.rel \ |
---|
| 115 | ../../../libcpu/@RTEMS_CPU@/reg_win.rel \ |
---|
| 116 | ../../../libcpu/@RTEMS_CPU@/syscall.rel |
---|
[bec7ba52] | 117 | |
---|
| 118 | if HAS_NETWORKING |
---|
| 119 | libbsp_a_LIBADD += leon_open_eth.rel |
---|
| 120 | libbsp_a_LIBADD += leon_smc91111.rel |
---|
| 121 | endif |
---|
| 122 | |
---|
| 123 | EXTRA_DIST += times |
---|
| 124 | |
---|
[4d8d475] | 125 | include $(srcdir)/preinstall.am |
---|
[bec7ba52] | 126 | include $(top_srcdir)/../../../../automake/local.am |
---|