source: rtems/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am @ d9be8024

4.104.114.95
Last change on this file since d9be8024 was d9be8024, checked in by Joel Sherrill <joel.sherrill@…>, on 08/21/08 at 16:16:47

2008-08-21 Joel Sherrill <joel.sherrill@…>

  • Makefile.am: Added bspclean.c and use shared bsppretaskinghook.c.
  • console/console.c: Added poll for char helper.
  • include/bsp.h: Add macro definitions for optional reset behavior.
  • startup/bspstart.c: Split out bsp_cleanup(). Clean up.
  • startup/bspclean.c: New file. Not can press any key on normal shutdown to reset board when on MPC8313erdb.
  • 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
14
15libcpudir = ../../../libcpu/@RTEMS_CPU@
16
17nodist_include_HEADERS = include/bspopts.h
18DISTCLEANFILES = include/bspopts.h
19
20noinst_PROGRAMS =
21
22include_bspdir = $(includedir)/bsp
23
24include_HEADERS += include/coverhd.h
25
26nodist_include_HEADERS += ../../shared/tod.h
27
28EXTRA_DIST = start/start.S
29start.$(OBJEXT): start/start.S
30        $(CPPASCOMPILE) -o $@ -c $<
31project_lib_DATA = start.$(OBJEXT)
32
33EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
34rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
35        $(CPPASCOMPILE) -o $@ -c $<
36project_lib_DATA += rtems_crti.$(OBJEXT)
37
38dist_project_lib_DATA += startup/linkcmds \
39                         startup/linkcmds.base \
40                         startup/linkcmds.mpc8313erdb \
41                         startup/linkcmds.mpc8349eamds \
42                         startup/linkcmds.hsc_cm01
43
44mpc83xx_regs_SOURCES = startup/mpc83xx_regs.c
45
46startup_SOURCES = ../../shared/bsplibc.c \
47        ../../shared/bsppost.c \
48        ../../shared/bootcard.c \
49        ../../shared/bsppredriverhook.c \
50        ../../shared/bsppretaskinghook.c \
51        ../../shared/sbrk.c \
52        ../../shared/gnatinstallhandler.c \
53        ../shared/src/tictac.c \
54        startup/cpuinit.c \
55        startup/bspstart.c \
56        startup/bspclean.c \
57        startup/uboot_support.c \
58        ../shared/uboot_getenv.c
59
60clock_SOURCES = ../shared/clock/clock.c
61
62include_bsp_HEADERS = include/irq.h \
63        include/irq-config.h \
64        ../../shared/include/irq-generic.h \
65        include/hwreg_vals.h \
66        ../shared/include/u-boot.h \
67        ../shared/include/tictac.h
68
69irq_SOURCES = include/irq.h \
70        include/irq-config.h \
71        irq/irq.c \
72        ../../shared/src/irq-generic.c \
73        ../../shared/src/irq-legacy.c
74
75console_SOURCES = console/console.c console/ns16550cfg.c
76bsp_i2c_SOURCES   = i2c/i2c_init.c
77bsp_spi_SOURCES   = spi/spi_init.c
78
79if HAS_NETWORKING
80noinst_PROGRAMS += network.rel
81network_rel_SOURCES   = network/network.c
82network_rel_CPPFLAGS  = $(AM_CPPFLAGS)
83network_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__  -D__BSD_VISIBLE
84network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
85endif
86
87noinst_LIBRARIES = libbsp.a
88libbsp_a_SOURCES = $(startup_SOURCES) $(clock_SOURCES) $(console_SOURCES) \
89    $(irq_SOURCES) $(mpc83xx_regs_SOURCES) \
90    $(bsp_i2c_SOURCES) $(bsp_spi_SOURCES)
91
92libbsp_a_LIBADD = $(libcpudir)/shared/cpuIdent.rel \
93        $(libcpudir)/shared/cache.rel \
94        $(libcpudir)/@exceptions@/rtems-cpu.rel \
95        $(libcpudir)/@exceptions@/raw_exception.rel \
96        $(libcpudir)/@exceptions@/exc_bspsupport.rel \
97        $(libcpudir)/mpc6xx/mmu.rel   \
98        $(libcpudir)/mpc6xx/timer.rel \
99        $(libcpudir)/mpc83xx/i2c.rel  \
100        $(libcpudir)/mpc83xx/spi.rel \
101        $(libcpudir)/mpc83xx/gtm.rel
102
103if HAS_NETWORKING
104libbsp_a_LIBADD += network.rel
105libbsp_a_LIBADD += $(libcpudir)/mpc83xx/tsec.rel
106endif
107
108EXTRA_DIST += README.mpc8349eamds
109EXTRA_DIST += times.mpc8349eamds
110### XXX
111
112include $(srcdir)/preinstall.am
113include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.