source: rtems/c/src/lib/libbsp/sparc/leon2/Makefile.am @ 0a1f5df9

Last change on this file since 0a1f5df9 was 0a1f5df9, checked in by Sebastian Huber <sebastian.huber@…>, on May 3, 2018 at 11:03:27 AM

Simplify _CPU_Counter_difference()

In order to simplify the use of CPU counter values it is beneficial to
have monotonic increasing values within the range of the CPU counter
ticks data type, e.g. 32-bit unsigned integer. This eases the use of
CPU counter timestamps in external tools which do not know the details
of the CPU counter hardware. The CPU counter is the fastest way to get
a time on an RTEMS system.

Such a CPU counter may be also used as the timecounter. Use it on SPARC
for this purpose to simplify the clock drivers.

Update #3456.

  • Property mode set to 100644
File size: 7.9 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../../aclocal
2
3include $(top_srcdir)/../../../../automake/compile.am
4include $(top_srcdir)/../../bsp.am
5
6dist_project_lib_DATA = ../../../../../../bsps/sparc/leon2/start/bsp_specs
7
8
9noinst_PROGRAMS =
10
11
12start.$(OBJEXT): ../../../../../../bsps/sparc/shared/start/start.S
13        $(CPPASCOMPILE) -o $@ -c $<
14project_lib_DATA = start.$(OBJEXT)
15
16project_lib_DATA += linkcmds
17dist_project_lib_DATA += ../../../../../../bsps/sparc/shared/start/linkcmds.base
18dist_project_lib_DATA += ../../../../../../bsps/sparc/leon2/start/linkcmds.at697f
19dist_project_lib_DATA += ../../../../../../bsps/sparc/leon2/start/linkcmds.leon2
20
21project_lib_LIBRARIES = librtemsbsp.a
22librtemsbsp_a_SOURCES =
23
24# startup
25librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
26librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspreset-empty.c
27librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/start/bspstart.c
28librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/start/bspgetworkarea.c
29librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
30librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
31librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/start/setvec.c
32librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/start/spurious.c
33librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/start/bspidle.c
34librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/start/bspdelay.c
35librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/start/bsp_fatal_exit.c
36librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/start/bsp_fatal_halt.c
37
38# gnatsupp
39librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/gnatsupp/gnatsupp.c
40librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/gnatcommon.c
41# console
42librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/console/console.c
43librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/console/debugputs.c
44# clock
45librtemsbsp_a_SOURCES +=../../../../../../bsps/sparc/leon2/clock/ckinit.c
46# IRQ
47librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/irq/genirq.c
48librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/irq/irq-shared.c
49librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/irq/bsp_isr_handler.c
50librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c
51
52# AMBA bus
53librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/amba/ambapp.c
54librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/amba/ambapp_alloc.c
55librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/amba/ambapp_count.c
56librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/amba/ambapp_depth.c
57librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/amba/ambapp_find_by_idx.c
58librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/amba/ambapp_freq.c
59librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/amba/ambapp_parent.c
60librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/amba/ambapp_old.c
61librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/amba/ambapp_names.c
62librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/amba/ambapp_show.c
63librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/amba/ahbstat.c
64
65# Clock Driver and Timer Library
66librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/btimer/gptimer.c
67librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/btimer/tlib.c
68
69# PCI
70librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/pci/grpci2.c
71librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/pci/grpci2dma.c
72librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/pci/grpci.c
73librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/pci/pcif.c
74librtemsbsp_a_SOURCES +=  ../../../../../../bsps/sparc/shared/pci/pci_memreg_sparc_le.c
75librtemsbsp_a_SOURCES +=  ../../../../../../bsps/sparc/shared/pci/pci_memreg_sparc_be.c
76librtemsbsp_a_SOURCES +=  ../../../../../../bsps/sparc/leon2/pci/at697_pci.c
77
78# PCI target devices
79librtemsbsp_a_SOURCES +=  ../../../../../../bsps/sparc/shared/pci/gr_701.c
80librtemsbsp_a_SOURCES +=  ../../../../../../bsps/sparc/shared/pci/gr_rasta_adcdac.c
81librtemsbsp_a_SOURCES +=  ../../../../../../bsps/sparc/shared/pci/gr_rasta_io.c
82librtemsbsp_a_SOURCES +=  ../../../../../../bsps/sparc/shared/pci/gr_rasta_spw_router.c
83librtemsbsp_a_SOURCES +=  ../../../../../../bsps/sparc/shared/pci/gr_rasta_tmtc.c
84librtemsbsp_a_SOURCES +=  ../../../../../../bsps/sparc/shared/pci/gr_leon4_n2x.c
85librtemsbsp_a_SOURCES +=  ../../../../../../bsps/sparc/shared/pci/gr_cpci_gr740.c
86
87# B1553BRM
88librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/1553/b1553brm.c
89librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/1553/b1553rt.c
90
91# GR1553B
92librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/1553/gr1553b.c
93librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/1553/gr1553bc.c
94librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/1553/gr1553bm.c
95librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/1553/gr1553rt.c
96
97# CAN
98librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/can/occan.c
99librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/can/grcan.c
100
101# SpaceWire
102if !HAS_SMP
103librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/spw/grspw.c
104endif
105librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/spw/grspw_pkt.c
106librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/spw/grspw_router.c
107
108# UART (RAW)
109# I2CMST
110librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/i2c/i2cmst.c
111
112# SPI
113librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/spi/spictrl.c
114
115# TIME
116librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/time/spwcuc.c
117librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/time/grctm.c
118
119# GPIO
120librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/gpio/grgpio.c
121librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/gpio/gpiolib.c
122
123# PWM
124librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/pwm/grpwm.c
125
126# ADC and DAC
127librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/analog/gradcdac.c
128
129# Memory controllers
130librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/mem/mctrl.c
131# l2cache
132librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/l2c/l2c.c
133librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/start/cache.c
134# griommu
135librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/iommu/griommu.c
136# timer
137librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/btimer/btimer.c
138
139# TM/TC
140librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/tmtc/grtc.c
141librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/tmtc/grtm.c
142
143# MEMSCRUB
144librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/scrub/memscrub.c
145
146# L4STAT
147librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/stat/l4stat.c
148
149# SPWTDP
150librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/spw/spwtdp.c
151
152# Driver Manager
153librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/drvmgr/ambapp_bus.c
154librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/drvmgr/ambapp_bus_leon2.c
155librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/drvmgr/leon2_amba_bus.c
156librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/drvmgr/get_resarray_count.c
157
158if HAS_SMP
159librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspsmp-dummy.c
160librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/getcurrentprocessor-zero.c
161endif
162
163if HAS_NETWORKING
164librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/net/leon_smc91111.c
165librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/leon2/net/leon_open_eth.c
166librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/net/greth.c
167librtemsbsp_a_SOURCES += ../../../../../../bsps/sparc/shared/net/network_interface_add.c
168endif
169
170
171include $(srcdir)/../../../../../../bsps/shared/irq-sources.am
172include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
173include $(srcdir)/../../../../../../bsps/sparc/leon2/headers.am
Note: See TracBrowser for help on using the repository browser.