source: rtems/c/src/lib/libbsp/powerpc/gen5200/Makefile.am @ 6e2fcea

4.104.114.95
Last change on this file since 6e2fcea was 6e2fcea, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 1, 2008 at 7:12:48 PM

2008-07-01 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, include/bsp.h: Add bsp_uboot_getenv() to obtain U-Boot environment variables.
  • startup/uboot_support.c: New file.
  • Property mode set to 100644
File size: 4.5 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7include $(top_srcdir)/../../../../automake/compile.am
8include $(top_srcdir)/../../bsp.am
9
10dist_project_lib_DATA = bsp_specs
11
12include_HEADERS = include/bsp.h include/i2cdrv.h include/u-boot.h \
13    include/i2c.h include/mpc5200.h
14include_HEADERS += include/tm27.h
15
16nodist_include_HEADERS = include/bspopts.h
17DISTCLEANFILES = include/bspopts.h
18
19noinst_PROGRAMS =
20
21include_bspdir = $(includedir)/bsp
22
23include_HEADERS += include/coverhd.h
24
25nodist_include_HEADERS += ../../shared/tod.h
26
27EXTRA_DIST = start/start.S
28start.$(OBJEXT): start/start.S
29        $(CPPASCOMPILE) -o $@ -c $<
30project_lib_DATA = start.$(OBJEXT)
31
32EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
33rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
34        $(CPPASCOMPILE) -o $@ -c $<
35project_lib_DATA += rtems_crti.$(OBJEXT)
36
37dist_project_lib_DATA += startup/linkcmds
38dist_project_lib_DATA += startup/linkcmds.brs5l
39dist_project_lib_DATA += startup/linkcmds.icecube
40dist_project_lib_DATA += startup/linkcmds.pm520
41
42noinst_PROGRAMS += bestcomm.rel
43bestcomm_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
60bestcomm_rel_CPPFLAGS = $(AM_CPPFLAGS) -DMPC5200_BAPI_LIBC_HEADERS
61bestcomm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
62
63clock_SOURCES = clock/clock.c
64console_SOURCES = console/console.c
65i2c_SOURCES = i2c/i2c.c i2c/i2cdrv.c i2c/mpc5200mbus.c i2c/mpc5200mbus.h
66ide_SOURCES = ide/idecfg.c ide/pcmcia_ide.c ide/pcmcia_ide.h
67
68include_bsp_HEADERS = irq/irq.h include/i2cdrv.h include/mpc5200.h \
69    include/i2c.h include/u-boot.h
70irq_SOURCES = irq/irq.c irq/irq_init.c irq/irq.h irq/irq_asm.S
71mscan_SOURCES = mscan/mscan.c mscan/mscan.h mscan/mscan_int.h
72
73include_bsp_HEADERS += nvram/nvram.h
74nvram_SOURCES = nvram/nvram.c nvram/nvram.h nvram/m93cxx.h
75
76include_bsp_HEADERS += slicetimer/slicetimer.h
77slicetimer_SOURCES = slicetimer/slicetimer.c slicetimer/slicetimer.h
78
79tod_SOURCES = tod/todcfg.c tod/pcf8563.c tod/pcf8563.h \
80    ../../shared/tod.c
81
82include_bsp_HEADERS += vectors/vectors.h
83
84startup_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 startup/uboot_support.c ../shared/uboot_getenv.c
89
90vectors_SOURCES = vectors/vectors_init.c vectors/vectors.h \
91    vectors/vectors.S
92
93if HAS_NETWORKING
94network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
95network_CPPFLAGS += -D__BSD_VISIBLE
96noinst_PROGRAMS += network.rel
97network_rel_SOURCES = network_5200/network.c
98network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)
99network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
100endif
101
102noinst_LIBRARIES = libbsp.a
103libbsp_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
108libbsp_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
118if HAS_NETWORKING
119libbsp_a_LIBADD += network.rel
120endif
121
122include $(srcdir)/preinstall.am
123include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.