source: rtems/c/src/lib/libbsp/powerpc/virtex/Makefile.am @ 642ef00

Last change on this file since 642ef00 was 642ef00, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 27, 2017 at 5:23:29 AM

bsps: Provide <tm27.h> in each BSP

Since the <tm27.h> is highly BSP-dependent and used only by the tm27
test program we must provide this header file for each BSP. Without the
preinstall build target each header file must have a unique source
header file.

Update #3254.

  • Property mode set to 100644
File size: 2.8 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../../aclocal
2
3include $(top_srcdir)/../../../../automake/compile.am
4
5include_bspdir = $(includedir)/bsp
6
7dist_project_lib_DATA = bsp_specs
8
9include_HEADERS = include/bsp.h
10include_HEADERS += include/tm27.h
11include_HEADERS += include/xparameters_dflt.h
12if HAS_NETWORKING
13include_HEADERS += network/xiltemac.h
14endif
15
16nodist_include_HEADERS = include/bspopts.h
17nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
18
19include_bsp_HEADERS =
20
21DISTCLEANFILES = include/bspopts.h
22
23noinst_PROGRAMS =
24
25
26include_bsp_HEADERS += ../shared/include/linker-symbols.h
27
28noinst_LIBRARIES = libbspstart.a
29libbspstart_a_SOURCES = start/start.S
30project_lib_DATA = start.$(OBJEXT)
31
32libbspstart_a_SOURCES += ../../powerpc/shared/start/rtems_crti.S
33project_lib_DATA += rtems_crti.$(OBJEXT)
34
35# Link commands
36project_lib_DATA += startup/linkcmds
37dist_project_lib_DATA += ../shared/startup/linkcmds.base
38
39noinst_LIBRARIES += libbsp.a
40libbsp_a_SOURCES =
41libbsp_a_LIBADD =
42
43# startup
44libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bspgetworkarea.c \
45    ../../shared/bspreset_loop.c \
46    startup/bspstart.c ../../shared/bootcard.c \
47    ../../shared/getentropy-cpucounter.c \
48    ../../shared/bsppredriverhook.c \
49    ../../shared/sbrk.c ../../shared/gnatinstallhandler.c
50libbsp_a_SOURCES += ../shared/src/bsp-start-zero.S
51
52# bspconsole
53libbsp_a_SOURCES += console/consolelite.c ../../shared/console.c \
54    ../../shared/console_select.c ../../shared/console_control.c \
55    ../../shared/console_read.c ../../shared/console_write.c
56
57# irq
58include_bsp_HEADERS += ../../shared/include/irq-generic.h
59include_bsp_HEADERS += ../../shared/include/irq-info.h
60include_bsp_HEADERS += include/opbintctrl.h
61include_bsp_HEADERS += irq/irq.h
62libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
63libbsp_a_SOURCES += ../../shared/src/irq-generic.c
64libbsp_a_SOURCES += ../../shared/src/irq-info.c
65libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
66libbsp_a_SOURCES += ../../shared/src/irq-server.c
67libbsp_a_SOURCES += ../../shared/src/irq-shell.c
68libbsp_a_SOURCES += irq/irq_init.c
69
70# clock
71libbsp_a_SOURCES += ../shared/clock/clock.c
72
73if HAS_NETWORKING
74network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
75network_CPPFLAGS += -D__BSD_VISIBLE
76noinst_PROGRAMS += network.rel
77network_rel_SOURCES = network/xiltemac.c
78network_rel_CPPFLAGS = $(AM_CPPFLAGS)
79network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
80endif
81
82# timer
83libbsp_a_SOURCES += timer/timer-config.c
84libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/ppc403/timer.rel
85
86libbsp_a_LIBADD += \
87    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
88    ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \
89    ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
90    ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel
91
92if HAS_NETWORKING
93libbsp_a_LIBADD += network.rel
94endif
95
96include $(srcdir)/preinstall.am
97include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.