source: rtems/c/src/lib/libbsp/sparc/leon3/Makefile.am @ 1982a19

4.104.114.84.95
Last change on this file since 1982a19 was 1982a19, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 6, 2007 at 12:01:30 AM

2007-09-05 Daniel Hellstrom <daniel@…>

  • Makefile.am, preinstall.am, amba/amba.c, include/amba.h, include/leon.h: LEON3 AMBA PnP bus scanning moved to shared/amba/amba.c and shared/include/ambapp.h. The AMBA scanning was improved to take account for PnP info address translation. This is useful when scanning remote AMBA busses for example when a board connected with PCI has an AMBA bus that needs to be scanned, before the addresses was hard coded. Also, LEON2 now have AMBA PnP bus scanning support. By using the new AMBA scanning routines it is possible to isolate the AMBA scanning code to ambapp.c, however existing drivers should be updated to use them in order to save space.
  • Property mode set to 100644
File size: 3.6 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
13include_HEADERS += include/tm27.h
14
15nodist_include_HEADERS = include/bspopts.h
16DISTCLEANFILES = include/bspopts.h
17
18noinst_PROGRAMS =
19
20# wrapup is the one that actually builds and installs the library
21# from the individual .rel files built in other directories
22SUBDIRS = . tools
23
24include_HEADERS += include/leon.h
25include_HEADERS += include/coverhd.h
26include_HEADERS += include/spacewire.h
27
28EXTRA_DIST = ../../sparc/shared/start.S
29start.$(OBJEXT): ../../sparc/shared/start.S
30        $(CPPASCOMPILE) -o $@ -c $<
31
32project_lib_DATA = start.$(OBJEXT)
33
34dist_project_lib_DATA += startup/linkcmds
35
36noinst_PROGRAMS += startup.rel
37startup_rel_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \
38    ../../shared/bsppost.c startup/bspstart.c \
39    ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \
40    startup/spurious.c startup/ithread.S
41startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
42startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
43
44noinst_PROGRAMS += gnatsupp.rel
45gnatsupp_rel_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
46gnatsupp_rel_CPPFLAGS = $(AM_CPPFLAGS)
47gnatsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49include_HEADERS += include/amba.h
50include_HEADERS += ../../sparc/shared/include/ambapp.h
51
52noinst_PROGRAMS += amba.rel
53amba_rel_SOURCES = amba/amba.c ../../sparc/shared/amba/ambapp.c
54amba_rel_CPPFLAGS = $(AM_CPPFLAGS)
55amba_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
56
57noinst_PROGRAMS += console.rel
58console_rel_SOURCES = console/console.c console/consolereserveresources.c \
59    console/debugputs.c
60console_rel_CPPFLAGS = $(AM_CPPFLAGS)
61console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
62
63noinst_PROGRAMS += clock.rel
64clock_rel_SOURCES = clock/ckinit.c
65clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
66clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
67
68if HAS_NETWORKING
69noinst_PROGRAMS += leon_smc91111.rel
70leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
71leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
72leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
73leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
74endif
75
76noinst_PROGRAMS += timer.rel
77timer_rel_SOURCES = timer/timer.c
78timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
79timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
80
81if HAS_NETWORKING
82noinst_PROGRAMS += leon_open_eth.rel
83leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
84leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
85leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
86leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
87endif
88
89if HAS_NETWORKING
90noinst_PROGRAMS += leon_greth.rel
91leon_greth_rel_SOURCES = leon_greth/leon_greth.c
92leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)
93leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
94leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
95endif
96
97noinst_LIBRARIES = libbsp.a
98libbsp_a_SOURCES =
99libbsp_a_LIBADD = startup.rel amba.rel console.rel clock.rel timer.rel \
100    gnatsupp.rel
101
102if HAS_NETWORKING
103libbsp_a_LIBADD += leon_open_eth.rel
104endif
105
106if HAS_NETWORKING
107libbsp_a_LIBADD += leon_greth.rel
108endif
109
110if HAS_MP
111EXTRA_DIST += shmsupp/README
112
113noinst_PROGRAMS += shmsupp.rel
114shmsupp_rel_SOURCES = shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
115    shmsupp/mpisr.c
116shmsupp_rel_CPPFLAGS = $(AM_CPPFLAGS)
117shmsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
118endif
119
120libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \
121    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
122    ../../../libcpu/@RTEMS_CPU@/syscall.rel
123
124if HAS_MP
125libbsp_a_LIBADD += shmsupp.rel
126endif
127
128EXTRA_DIST += times
129
130include $(srcdir)/preinstall.am
131include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.