[ca680bc5] | 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 | |
---|
[d8b2e89c] | 10 | libcpudir = ../../../libcpu/@RTEMS_CPU@ |
---|
| 11 | |
---|
[ca680bc5] | 12 | dist_project_lib_DATA = bsp_specs |
---|
| 13 | |
---|
[38d3ebba] | 14 | include_HEADERS = include/bsp.h include/i2cdrv.h include/u-boot.h \ |
---|
[d8b2e89c] | 15 | include/i2c.h |
---|
[ca680bc5] | 16 | include_HEADERS += include/tm27.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 += include/coverhd.h |
---|
| 26 | |
---|
| 27 | nodist_include_HEADERS += ../../shared/tod.h |
---|
| 28 | |
---|
| 29 | EXTRA_DIST = start/start.S |
---|
| 30 | start.$(OBJEXT): start/start.S |
---|
[57357d9] | 31 | $(CPPASCOMPILE) -o $@ -c $< |
---|
[ca680bc5] | 32 | project_lib_DATA = start.$(OBJEXT) |
---|
| 33 | |
---|
[6c053cb] | 34 | EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S |
---|
| 35 | rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S |
---|
| 36 | $(CPPASCOMPILE) -o $@ -c $< |
---|
| 37 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
| 38 | |
---|
[d8b2e89c] | 39 | dist_project_lib_DATA += startup/linkcmds \ |
---|
| 40 | startup/linkcmds.base \ |
---|
| 41 | startup/linkcmds.brs5l \ |
---|
| 42 | startup/linkcmds.icecube \ |
---|
| 43 | startup/linkcmds.pm520 |
---|
[ca680bc5] | 44 | |
---|
[6c45275a] | 45 | bestcomm_SOURCES = bestcomm/include/ppctypes.h \ |
---|
[c5f64d2] | 46 | bestcomm/include/mgt5200/mgt5200.h bestcomm/include/mgt5200/sdma.h \ |
---|
| 47 | bestcomm/bestcomm_api.c bestcomm/bestcomm_api.h bestcomm/bestcomm_glue.c \ |
---|
| 48 | bestcomm/bestcomm_glue.h bestcomm/dma_image.c bestcomm/dma_image.capi.h \ |
---|
| 49 | bestcomm/dma_image.h bestcomm/dma_image.reloc.c bestcomm/load_task.c \ |
---|
| 50 | bestcomm/tasksetup_ata.c bestcomm/tasksetup_bdtable.c \ |
---|
| 51 | bestcomm/tasksetup_crc16_dp_0.c bestcomm/tasksetup_crc16_dp_1.c \ |
---|
| 52 | bestcomm/tasksetup_fec_rx_bd.c bestcomm/tasksetup_fec_tx_bd.c \ |
---|
| 53 | bestcomm/tasksetup_gen_dp_0.c bestcomm/tasksetup_gen_dp_1.c \ |
---|
| 54 | bestcomm/tasksetup_gen_dp_2.c bestcomm/tasksetup_gen_dp_3.c \ |
---|
| 55 | bestcomm/tasksetup_gen_dp_bd_0.c bestcomm/tasksetup_gen_dp_bd_1.c \ |
---|
| 56 | bestcomm/tasksetup_gen_rx_bd.c bestcomm/tasksetup_gen_tx_bd.c \ |
---|
| 57 | bestcomm/tasksetup_lpc.c bestcomm/tasksetup_pci_rx.c \ |
---|
| 58 | bestcomm/tasksetup_pci_tx.c bestcomm/bestcomm_priv.h \ |
---|
| 59 | bestcomm/task_api/bestcomm_api_mem.h bestcomm/task_api/bestcomm_cntrl.h \ |
---|
| 60 | bestcomm/task_api/tasksetup_bdtable.h \ |
---|
| 61 | bestcomm/task_api/tasksetup_general.h |
---|
[ca680bc5] | 62 | |
---|
[1d0ee80e] | 63 | clock_SOURCES = clock/clock.c |
---|
| 64 | console_SOURCES = console/console.c |
---|
| 65 | i2c_SOURCES = i2c/i2c.c i2c/i2cdrv.c i2c/mpc5200mbus.c i2c/mpc5200mbus.h |
---|
| 66 | ide_SOURCES = ide/idecfg.c ide/pcmcia_ide.c ide/pcmcia_ide.h |
---|
[ca680bc5] | 67 | |
---|
[d8b2e89c] | 68 | include_bsp_HEADERS = $(libcpudir)/new-exceptions/bspsupport/vectors.h \ |
---|
| 69 | $(libcpudir)/new-exceptions/bspsupport/ppc_exc_bspsupp.h \ |
---|
| 70 | ../../shared/include/irq-generic.h \ |
---|
| 71 | include/irq-config.h \ |
---|
| 72 | include/irq.h \ |
---|
| 73 | include/i2cdrv.h \ |
---|
| 74 | include/i2c.h \ |
---|
| 75 | include/mpc5200.h \ |
---|
| 76 | include/mscan-base.h \ |
---|
| 77 | include/u-boot.h \ |
---|
| 78 | mscan/mscan.h |
---|
| 79 | |
---|
| 80 | irq_SOURCES = include/irq.h \ |
---|
| 81 | include/irq-config.h \ |
---|
| 82 | irq/irq.c \ |
---|
| 83 | ../../shared/src/irq-generic.c \ |
---|
| 84 | ../../shared/src/irq-legacy.c |
---|
| 85 | |
---|
| 86 | mscan_SOURCES = mscan/mscan.c mscan/mscan-base.c mscan/mscan.h mscan/mscan_int.h |
---|
[ca680bc5] | 87 | |
---|
[c9b005a9] | 88 | include_bsp_HEADERS += nvram/nvram.h |
---|
[1d0ee80e] | 89 | nvram_SOURCES = nvram/nvram.c nvram/nvram.h nvram/m93cxx.h |
---|
[ca680bc5] | 90 | |
---|
[c9b005a9] | 91 | include_bsp_HEADERS += slicetimer/slicetimer.h |
---|
[1d0ee80e] | 92 | slicetimer_SOURCES = slicetimer/slicetimer.c slicetimer/slicetimer.h |
---|
[ca680bc5] | 93 | |
---|
[1d0ee80e] | 94 | tod_SOURCES = tod/todcfg.c tod/pcf8563.c tod/pcf8563.h \ |
---|
[0a7ea49] | 95 | ../../shared/tod.c |
---|
[ca680bc5] | 96 | |
---|
[d8b2e89c] | 97 | startup_SOURCES = ../../shared/bootcard.c \ |
---|
| 98 | ../../shared/bsplibc.c \ |
---|
| 99 | ../../shared/bsppost.c \ |
---|
| 100 | ../../shared/bsppretaskinghook.c \ |
---|
| 101 | ../../shared/gnatinstallhandler.c \ |
---|
| 102 | ../../shared/sbrk.c \ |
---|
| 103 | ../shared/showbats.c \ |
---|
| 104 | ../shared/uboot_dump_bdinfo.c \ |
---|
| 105 | ../shared/uboot_getenv.c \ |
---|
| 106 | startup/bspclean.c \ |
---|
| 107 | startup/bspstart.c \ |
---|
| 108 | startup/cpuinit.c \ |
---|
| 109 | startup/uboot_support.c |
---|
[ca680bc5] | 110 | |
---|
| 111 | if HAS_NETWORKING |
---|
| 112 | network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
| 113 | network_CPPFLAGS += -D__BSD_VISIBLE |
---|
| 114 | noinst_PROGRAMS += network.rel |
---|
[38d3ebba] | 115 | network_rel_SOURCES = network_5200/network.c |
---|
[ca680bc5] | 116 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS) |
---|
| 117 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 118 | endif |
---|
| 119 | |
---|
| 120 | noinst_LIBRARIES = libbsp.a |
---|
[1d0ee80e] | 121 | libbsp_a_SOURCES = $(clock_SOURCES) $(console_SOURCES) $(i2c_SOURCES) \ |
---|
| 122 | $(ide_SOURCES) $(irq_SOURCES) $(mscan_SOURCES) $(nvram_SOURCES) \ |
---|
[6c45275a] | 123 | $(slicetimer_SOURCES) $(tod_SOURCES) $(startup_SOURCES) $(bestcomm_SOURCES) |
---|
[d8b2e89c] | 124 | |
---|
| 125 | libbsp_a_LIBADD = $(libcpudir)/shared/cpuIdent.rel \ |
---|
| 126 | $(libcpudir)/shared/cache.rel \ |
---|
| 127 | $(libcpudir)/shared/stack.rel \ |
---|
| 128 | $(libcpudir)/@exceptions@/rtems-cpu.rel \ |
---|
| 129 | $(libcpudir)/@exceptions@/raw_exception.rel \ |
---|
| 130 | $(libcpudir)/@exceptions@/exc_bspsupport.rel \ |
---|
| 131 | $(libcpudir)/mpc6xx/mmu.rel \ |
---|
[6c45275a] | 132 | $(libcpudir)/mpc6xx/timer.rel |
---|
[ca680bc5] | 133 | |
---|
[1d0ee80e] | 134 | if HAS_NETWORKING |
---|
| 135 | libbsp_a_LIBADD += network.rel |
---|
| 136 | endif |
---|
| 137 | |
---|
[7cc4f59] | 138 | include $(srcdir)/preinstall.am |
---|
[ca680bc5] | 139 | include $(top_srcdir)/../../../../automake/local.am |
---|