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 |
---|
13 | include_HEADERS += include/tm27.h |
---|
14 | |
---|
15 | libcpudir = ../../../libcpu/@RTEMS_CPU@ |
---|
16 | |
---|
17 | nodist_include_HEADERS = include/bspopts.h |
---|
18 | DISTCLEANFILES = include/bspopts.h |
---|
19 | |
---|
20 | noinst_PROGRAMS = |
---|
21 | |
---|
22 | include_bspdir = $(includedir)/bsp |
---|
23 | |
---|
24 | include_HEADERS += include/coverhd.h |
---|
25 | |
---|
26 | nodist_include_HEADERS += ../../shared/tod.h |
---|
27 | |
---|
28 | EXTRA_DIST = start/start.S |
---|
29 | start.$(OBJEXT): start/start.S |
---|
30 | $(CPPASCOMPILE) -o $@ -c $< |
---|
31 | project_lib_DATA = start.$(OBJEXT) |
---|
32 | |
---|
33 | EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S |
---|
34 | rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S |
---|
35 | $(CPPASCOMPILE) -o $@ -c $< |
---|
36 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
37 | |
---|
38 | dist_project_lib_DATA += startup/linkcmds \ |
---|
39 | startup/linkcmds.base \ |
---|
40 | startup/linkcmds.mpc8313erdb \ |
---|
41 | startup/linkcmds.mpc8349eamds \ |
---|
42 | startup/linkcmds.hsc_cm01 |
---|
43 | |
---|
44 | mpc83xx_regs_SOURCES = startup/mpc83xx_regs.c |
---|
45 | |
---|
46 | startup_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 | |
---|
60 | clock_SOURCES = ../shared/clock/clock.c |
---|
61 | |
---|
62 | include_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 | |
---|
69 | irq_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 | |
---|
75 | console_SOURCES = console/console.c console/ns16550cfg.c |
---|
76 | bsp_i2c_SOURCES = i2c/i2c_init.c |
---|
77 | bsp_spi_SOURCES = spi/spi_init.c |
---|
78 | |
---|
79 | if HAS_NETWORKING |
---|
80 | noinst_PROGRAMS += network.rel |
---|
81 | network_rel_SOURCES = network/network.c |
---|
82 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
83 | network_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE |
---|
84 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
85 | endif |
---|
86 | |
---|
87 | noinst_LIBRARIES = libbsp.a |
---|
88 | libbsp_a_SOURCES = $(startup_SOURCES) $(clock_SOURCES) $(console_SOURCES) \ |
---|
89 | $(irq_SOURCES) $(mpc83xx_regs_SOURCES) \ |
---|
90 | $(bsp_i2c_SOURCES) $(bsp_spi_SOURCES) |
---|
91 | |
---|
92 | libbsp_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 | |
---|
103 | if HAS_NETWORKING |
---|
104 | libbsp_a_LIBADD += network.rel |
---|
105 | libbsp_a_LIBADD += $(libcpudir)/mpc83xx/tsec.rel |
---|
106 | endif |
---|
107 | |
---|
108 | EXTRA_DIST += README.mpc8349eamds |
---|
109 | EXTRA_DIST += times.mpc8349eamds |
---|
110 | ### XXX |
---|
111 | |
---|
112 | include $(srcdir)/preinstall.am |
---|
113 | include $(top_srcdir)/../../../../automake/local.am |
---|