1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
8 | |
---|
9 | include_bspdir = $(includedir)/bsp |
---|
10 | |
---|
11 | dist_project_lib_DATA = bsp_specs |
---|
12 | |
---|
13 | include_HEADERS = include/bsp.h |
---|
14 | include_HEADERS += include/tm27.h |
---|
15 | |
---|
16 | nodist_include_HEADERS = include/bspopts.h |
---|
17 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
18 | DISTCLEANFILES = include/bspopts.h |
---|
19 | |
---|
20 | noinst_PROGRAMS = |
---|
21 | |
---|
22 | include_HEADERS += ../../shared/include/coverhd.h |
---|
23 | |
---|
24 | nodist_include_HEADERS += ../../shared/tod.h |
---|
25 | |
---|
26 | noinst_LIBRARIES = libbspstart.a |
---|
27 | libbspstart_a_SOURCES = start/start.S |
---|
28 | project_lib_DATA = start.$(OBJEXT) |
---|
29 | |
---|
30 | libbspstart_a_SOURCES += ../../powerpc/shared/start/rtems_crti.S |
---|
31 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
32 | |
---|
33 | dist_project_lib_DATA += startup/linkcmds \ |
---|
34 | startup/linkcmds.base \ |
---|
35 | startup/linkcmds.mpc8313erdb \ |
---|
36 | startup/linkcmds.mpc8349eamds \ |
---|
37 | startup/linkcmds.hsc_cm01 |
---|
38 | |
---|
39 | noinst_LIBRARIES += libbsp.a |
---|
40 | libbsp_a_SOURCES = |
---|
41 | |
---|
42 | # mpc83xx_regs |
---|
43 | libbsp_a_SOURCES += startup/mpc83xx_regs.c |
---|
44 | |
---|
45 | # startup |
---|
46 | libbsp_a_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 | ../shared/startup/bspidle.c \ |
---|
56 | startup/bspstart.c \ |
---|
57 | ../../shared/bspclean.c \ |
---|
58 | startup/bspreset.c \ |
---|
59 | ../../shared/bspgetworkarea.c \ |
---|
60 | startup/uboot_support.c \ |
---|
61 | ../shared/uboot_getenv.c |
---|
62 | |
---|
63 | # clock |
---|
64 | libbsp_a_SOURCES += ../shared/clock/clock.c |
---|
65 | |
---|
66 | include_bsp_HEADERS = include/irq.h \ |
---|
67 | include/irq-config.h \ |
---|
68 | ../../shared/include/irq-generic.h \ |
---|
69 | include/hwreg_vals.h \ |
---|
70 | ../shared/include/u-boot.h \ |
---|
71 | ../shared/include/tictac.h |
---|
72 | |
---|
73 | # irq |
---|
74 | libbsp_a_SOURCES += include/irq.h \ |
---|
75 | include/irq-config.h \ |
---|
76 | irq/irq.c \ |
---|
77 | ../../shared/src/irq-generic.c \ |
---|
78 | ../../shared/src/irq-legacy.c |
---|
79 | |
---|
80 | # console |
---|
81 | libbsp_a_SOURCES += console/console.c console/ns16550cfg.c |
---|
82 | # bsp_i2c |
---|
83 | libbsp_a_SOURCES += i2c/i2c_init.c |
---|
84 | # bsp_spi |
---|
85 | libbsp_a_SOURCES += spi/spi_init.c |
---|
86 | |
---|
87 | if HAS_NETWORKING |
---|
88 | noinst_PROGRAMS += network.rel |
---|
89 | network_rel_SOURCES = network/network.c |
---|
90 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
91 | network_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE |
---|
92 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
93 | endif |
---|
94 | |
---|
95 | libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \ |
---|
96 | ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \ |
---|
97 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \ |
---|
98 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel \ |
---|
99 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \ |
---|
100 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \ |
---|
101 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel \ |
---|
102 | ../../../libcpu/@RTEMS_CPU@/mpc83xx/i2c.rel \ |
---|
103 | ../../../libcpu/@RTEMS_CPU@/mpc83xx/spi.rel \ |
---|
104 | ../../../libcpu/@RTEMS_CPU@/mpc83xx/gtm.rel |
---|
105 | |
---|
106 | if HAS_NETWORKING |
---|
107 | libbsp_a_LIBADD += network.rel |
---|
108 | libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/mpc83xx/tsec.rel |
---|
109 | endif |
---|
110 | |
---|
111 | EXTRA_DIST = README.mpc8349eamds |
---|
112 | EXTRA_DIST += times.mpc8349eamds |
---|
113 | ### XXX |
---|
114 | |
---|
115 | include $(srcdir)/preinstall.am |
---|
116 | include $(top_srcdir)/../../../../automake/local.am |
---|