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 include/i2cdrv.h include/u-boot.h \ |
---|
13 | include/i2c.h include/mpc5200.h |
---|
14 | include_HEADERS += include/tm27.h |
---|
15 | |
---|
16 | nodist_include_HEADERS = include/bspopts.h |
---|
17 | DISTCLEANFILES = include/bspopts.h |
---|
18 | |
---|
19 | noinst_PROGRAMS = |
---|
20 | |
---|
21 | include_bspdir = $(includedir)/bsp |
---|
22 | |
---|
23 | include_HEADERS += include/coverhd.h |
---|
24 | |
---|
25 | nodist_include_HEADERS += ../../shared/tod.h |
---|
26 | |
---|
27 | EXTRA_DIST = start/start.S |
---|
28 | start.$(OBJEXT): start/start.S |
---|
29 | $(CPPASCOMPILE) -o $@ -c $< |
---|
30 | project_lib_DATA = start.$(OBJEXT) |
---|
31 | |
---|
32 | EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S |
---|
33 | rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S |
---|
34 | $(CPPASCOMPILE) -o $@ -c $< |
---|
35 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
36 | |
---|
37 | dist_project_lib_DATA += startup/linkcmds |
---|
38 | dist_project_lib_DATA += startup/linkcmds.brs5l |
---|
39 | dist_project_lib_DATA += startup/linkcmds.icecube |
---|
40 | dist_project_lib_DATA += startup/linkcmds.pm520 |
---|
41 | |
---|
42 | noinst_PROGRAMS += bestcomm.rel |
---|
43 | bestcomm_rel_SOURCES = bestcomm/include/ppctypes.h \ |
---|
44 | bestcomm/include/mgt5200/mgt5200.h bestcomm/include/mgt5200/sdma.h \ |
---|
45 | bestcomm/bestcomm_api.c bestcomm/bestcomm_api.h bestcomm/bestcomm_glue.c \ |
---|
46 | bestcomm/bestcomm_glue.h bestcomm/dma_image.c bestcomm/dma_image.capi.h \ |
---|
47 | bestcomm/dma_image.h bestcomm/dma_image.reloc.c bestcomm/load_task.c \ |
---|
48 | bestcomm/tasksetup_ata.c bestcomm/tasksetup_bdtable.c \ |
---|
49 | bestcomm/tasksetup_crc16_dp_0.c bestcomm/tasksetup_crc16_dp_1.c \ |
---|
50 | bestcomm/tasksetup_fec_rx_bd.c bestcomm/tasksetup_fec_tx_bd.c \ |
---|
51 | bestcomm/tasksetup_gen_dp_0.c bestcomm/tasksetup_gen_dp_1.c \ |
---|
52 | bestcomm/tasksetup_gen_dp_2.c bestcomm/tasksetup_gen_dp_3.c \ |
---|
53 | bestcomm/tasksetup_gen_dp_bd_0.c bestcomm/tasksetup_gen_dp_bd_1.c \ |
---|
54 | bestcomm/tasksetup_gen_rx_bd.c bestcomm/tasksetup_gen_tx_bd.c \ |
---|
55 | bestcomm/tasksetup_lpc.c bestcomm/tasksetup_pci_rx.c \ |
---|
56 | bestcomm/tasksetup_pci_tx.c bestcomm/bestcomm_priv.h \ |
---|
57 | bestcomm/task_api/bestcomm_api_mem.h bestcomm/task_api/bestcomm_cntrl.h \ |
---|
58 | bestcomm/task_api/tasksetup_bdtable.h \ |
---|
59 | bestcomm/task_api/tasksetup_general.h |
---|
60 | bestcomm_rel_CPPFLAGS = $(AM_CPPFLAGS) -DMPC5200_BAPI_LIBC_HEADERS |
---|
61 | bestcomm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
62 | |
---|
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 |
---|
67 | |
---|
68 | include_bsp_HEADERS = irq/irq.h include/i2cdrv.h include/mpc5200.h \ |
---|
69 | include/i2c.h include/u-boot.h |
---|
70 | irq_SOURCES = irq/irq.c irq/irq_init.c irq/irq.h irq/irq_asm.S |
---|
71 | mscan_SOURCES = mscan/mscan.c mscan/mscan.h mscan/mscan_int.h |
---|
72 | |
---|
73 | include_bsp_HEADERS += nvram/nvram.h |
---|
74 | nvram_SOURCES = nvram/nvram.c nvram/nvram.h nvram/m93cxx.h |
---|
75 | |
---|
76 | include_bsp_HEADERS += slicetimer/slicetimer.h |
---|
77 | slicetimer_SOURCES = slicetimer/slicetimer.c slicetimer/slicetimer.h |
---|
78 | |
---|
79 | tod_SOURCES = tod/todcfg.c tod/pcf8563.c tod/pcf8563.h \ |
---|
80 | ../../shared/tod.c |
---|
81 | |
---|
82 | include_bsp_HEADERS += vectors/vectors.h |
---|
83 | |
---|
84 | startup_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \ |
---|
85 | ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ |
---|
86 | ../../shared/sbrk.c ../shared/uboot_dump_bdinfo.c \ |
---|
87 | ../../shared/gnatinstallhandler.c startup/cpuinit.c \ |
---|
88 | ../shared/showbats.c |
---|
89 | |
---|
90 | vectors_SOURCES = vectors/vectors_init.c vectors/vectors.h \ |
---|
91 | vectors/vectors.S |
---|
92 | |
---|
93 | if HAS_NETWORKING |
---|
94 | network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
95 | network_CPPFLAGS += -D__BSD_VISIBLE |
---|
96 | noinst_PROGRAMS += network.rel |
---|
97 | network_rel_SOURCES = network_5200/network.c |
---|
98 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS) |
---|
99 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
100 | endif |
---|
101 | |
---|
102 | noinst_LIBRARIES = libbsp.a |
---|
103 | libbsp_a_SOURCES = $(clock_SOURCES) $(console_SOURCES) $(i2c_SOURCES) \ |
---|
104 | $(ide_SOURCES) $(irq_SOURCES) $(mscan_SOURCES) $(nvram_SOURCES) \ |
---|
105 | $(slicetimer_SOURCES) $(tod_SOURCES) $(startup_SOURCES) \ |
---|
106 | $(vectors_SOURCES) |
---|
107 | |
---|
108 | libbsp_a_LIBADD = \ |
---|
109 | bestcomm.rel \ |
---|
110 | ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \ |
---|
111 | ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \ |
---|
112 | ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \ |
---|
113 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \ |
---|
114 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \ |
---|
115 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel \ |
---|
116 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel |
---|
117 | |
---|
118 | if HAS_NETWORKING |
---|
119 | libbsp_a_LIBADD += network.rel |
---|
120 | endif |
---|
121 | |
---|
122 | include $(srcdir)/preinstall.am |
---|
123 | include $(top_srcdir)/../../../../automake/local.am |
---|