source: rtems/c/src/lib/libbsp/sparc/leon2/Makefile.am @ 4d3933b3

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

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

  • Makefile.am, preinstall.am: 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.0 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
14include_HEADERS += ../../sparc/shared/include/ambapp.h
15
16nodist_include_HEADERS = include/bspopts.h
17DISTCLEANFILES = include/bspopts.h
18
19noinst_PROGRAMS =
20
21# wrapup is the one that actually builds and installs the library
22# from the individual .rel files built in other directories
23SUBDIRS = . tools
24
25include_HEADERS += include/leon.h
26include_HEADERS += include/coverhd.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 ../../sparc/shared/bspstart.c \
39    ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \
40    startup/spurious.c
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
49noinst_PROGRAMS += console.rel
50console_rel_SOURCES = console/console.c console/consolereserveresources.c \
51    console/debugputs.c
52console_rel_CPPFLAGS = $(AM_CPPFLAGS)
53console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
54
55noinst_PROGRAMS += clock.rel
56clock_rel_SOURCES = clock/ckinit.c
57clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
58clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
59
60noinst_PROGRAMS += amba.rel
61amba_rel_SOURCES = ../../sparc/shared/amba/ambapp.c
62amba_rel_CPPFLAGS = $(AM_CPPFLAGS)
63amba_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
64
65if HAS_NETWORKING
66noinst_PROGRAMS += leon_smc91111.rel
67leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
68leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
69leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
70leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
71endif
72
73noinst_PROGRAMS += timer.rel
74timer_rel_SOURCES = timer/timer.c
75timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
76timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
77
78if HAS_NETWORKING
79noinst_PROGRAMS += leon_open_eth.rel
80leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
81leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
82leon_open_eth_rel_CPPFLAGS +=  -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
83leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
84endif
85
86noinst_LIBRARIES = libbsp.a
87libbsp_a_SOURCES =
88libbsp_a_LIBADD = startup.rel console.rel clock.rel timer.rel gnatsupp.rel \
89                  amba.rel
90
91if HAS_NETWORKING
92libbsp_a_LIBADD += leon_open_eth.rel
93libbsp_a_LIBADD += leon_smc91111.rel
94endif
95
96libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \
97    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
98    ../../../libcpu/@RTEMS_CPU@/syscall.rel
99
100EXTRA_DIST += times
101
102include $(srcdir)/preinstall.am
103include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.