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 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
14 | DISTCLEANFILES = include/bspopts.h |
---|
15 | |
---|
16 | noinst_PROGRAMS = |
---|
17 | |
---|
18 | noinst_LIBRARIES = libbspstart.a |
---|
19 | libbspstart_a_SOURCES = startup/start.S |
---|
20 | project_lib_DATA = start.$(OBJEXT) |
---|
21 | |
---|
22 | libbspstart_a_SOURCES += ../shared/start/rtems_crti.S |
---|
23 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
24 | |
---|
25 | # Link commands |
---|
26 | dist_project_lib_DATA += startup/linkcmds startup/linkcmds.memory |
---|
27 | |
---|
28 | noinst_LIBRARIES += libbsp.a |
---|
29 | libbsp_a_SOURCES = |
---|
30 | |
---|
31 | # Includes |
---|
32 | include_HEADERS = include/bsp.h |
---|
33 | include_HEADERS += ../../shared/include/tm27.h |
---|
34 | |
---|
35 | nodist_include_HEADERS = include/bspopts.h ../../shared/tod.h \ |
---|
36 | ../../shared/include/coverhd.h |
---|
37 | include_bsp_HEADERS = include/mpc55xxevb.h \ |
---|
38 | include/irq-config.h \ |
---|
39 | include/smsc9218i.h \ |
---|
40 | ../../shared/include/irq-generic.h \ |
---|
41 | ../../shared/include/irq-info.h \ |
---|
42 | ../../shared/include/utility.h \ |
---|
43 | ../shared/include/tictac.h |
---|
44 | |
---|
45 | # startup |
---|
46 | libbsp_a_SOURCES += ../../shared/bsplibc.c ../../shared/bsppost.c \ |
---|
47 | ../../shared/bootcard.c ../shared/src/tictac.c ../../shared/bspclean.c \ |
---|
48 | ../shared/startup/bspidle.c startup/bspstart.c startup/bspgetworkarea.c \ |
---|
49 | ../../shared/bsppretaskinghook.c |
---|
50 | |
---|
51 | # clock |
---|
52 | libbsp_a_SOURCES += clock/clock-config.c |
---|
53 | |
---|
54 | # irq_generic |
---|
55 | libbsp_a_SOURCES += ../../shared/src/irq-generic.c \ |
---|
56 | ../../shared/src/irq-legacy.c \ |
---|
57 | ../../shared/src/irq-info.c \ |
---|
58 | ../../shared/src/irq-shell.c |
---|
59 | |
---|
60 | # tests |
---|
61 | libbsp_a_SOURCES += ../../shared/timerstub.c |
---|
62 | |
---|
63 | # tests |
---|
64 | libbsp_a_SOURCES += tests/tests.c startup/sd-card-init.c |
---|
65 | |
---|
66 | # Network |
---|
67 | if HAS_NETWORKING |
---|
68 | noinst_PROGRAMS += network.rel |
---|
69 | network_rel_SOURCES = network/smsc9218i.c |
---|
70 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE |
---|
71 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
72 | endif |
---|
73 | |
---|
74 | # BSP library |
---|
75 | |
---|
76 | libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \ |
---|
77 | ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \ |
---|
78 | ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \ |
---|
79 | ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/misc.rel \ |
---|
80 | ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/irq.rel \ |
---|
81 | ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/edma.rel \ |
---|
82 | ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/emios.rel \ |
---|
83 | ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/dspi.rel \ |
---|
84 | ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/esci.rel \ |
---|
85 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \ |
---|
86 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel |
---|
87 | |
---|
88 | if HAS_NETWORKING |
---|
89 | libbsp_a_LIBADD += network.rel |
---|
90 | endif |
---|
91 | |
---|
92 | include $(srcdir)/preinstall.am |
---|
93 | include $(top_srcdir)/../../../../automake/local.am |
---|