source: rtems/c/src/lib/libbsp/i386/pc386/Makefile.am @ 33a2faa

Last change on this file since 33a2faa was 33a2faa, checked in by Sebastian Huber <sebastian.huber@…>, on Jan 2, 2018 at 7:04:06 AM

bsps: Add EXTRA_DIST to all BSP Makefile.am

This makes it possible to easily use

EXTRA_DIST += foobar

in fragments.

Update #3254.

  • Property mode set to 100644
File size: 7.9 KB
Line 
1##
2##
3
4ACLOCAL_AMFLAGS = -I ../../../../aclocal
5EXTRA_DIST =
6
7# FIXME: We must not include *.cfg
8include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
9
10CLEANFILES =
11
12include $(top_srcdir)/../../../../automake/compile.am
13include $(top_srcdir)/../../bsp.am
14
15include_bspdir = $(includedir)/bsp
16
17dist_project_lib_DATA = bsp_specs
18
19include_HEADERS = include/bsp.h
20include_HEADERS += include/tm27.h
21
22nodist_include_HEADERS = include/bspopts.h
23nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
24DISTCLEANFILES = include/bspopts.h
25
26noinst_PROGRAMS =
27
28_SUBDIRS = . tools
29
30nodist_include_bsp_HEADERS += include/bspimpl.h
31include_bsp_HEADERS  = ../../i386/shared/irq/irq.h
32include_bsp_HEADERS += ../../i386/shared/irq/irq_asm.h
33include_bsp_HEADERS += ../../i386/shared/comm/tty_drv.h
34include_bsp_HEADERS += ../../i386/shared/realmode_int/realmode_int.h
35include_bsp_HEADERS += ../../shared/include/irq-generic.h
36include_bsp_HEADERS += ../../shared/include/irq-info.h
37include_bsp_HEADERS += console/rtd316.h
38include_bsp_HEADERS += console/exar17d15x.h
39include_bsp_HEADERS += include/tblsizes.h
40
41if HAS_SMP
42include_bsp_HEADERS += ../../i386/shared/irq/apic.h
43include_bsp_HEADERS += ../../i386/shared/smp/smp-imps.h
44endif
45
46include_HEADERS += include/crt.h
47
48noinst_LIBRARIES = libbspstart.a
49libbspstart_a_SOURCES = start/start.S
50project_lib_DATA = start.$(OBJEXT)
51
52EXTRA_DIST += start/start16.S
53start16.$(OBJEXT): start/start16.S
54        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $<
55
56start16-elf32.$(OBJEXT): start16.$(OBJEXT)
57        $(LD) -N -Ttext $(START16ADDR) -e start16 -nostdlib \
58          --oformat=elf32-i386 \
59        -o $@ $<
60
61start16.bin: start16-elf32.$(OBJEXT)
62        $(OBJCOPY) -O binary $< $@
63CLEANFILES += start16.bin
64
65project_lib_DATA += start16.bin
66
67dist_project_lib_DATA += startup/linkcmds
68
69noinst_LIBRARIES += libbsp.a
70libbsp_a_SOURCES =
71
72# clock
73libbsp_a_SOURCES += clock/ckinit.c
74libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
75libbsp_a_SOURCES += clock/todcfg.c
76libbsp_a_SOURCES += ../../shared/tod.c
77
78include_rtemsdir = $(includedir)/rtems
79include_rtems_HEADERS  =
80
81if RTEMS_VGA
82include_rtems_HEADERS += console/keyboard.h
83include_rtems_HEADERS += console/kd.h
84include_rtems_HEADERS += console/ps2_drv.h
85include_rtems_HEADERS += console/vgacons.h
86libbsp_a_SOURCES += console/inch.c
87libbsp_a_SOURCES += console/outch.c
88libbsp_a_SOURCES += console/defkeymap.c
89libbsp_a_SOURCES += console/keyboard.c
90libbsp_a_SOURCES += console/pc_keyb.c
91libbsp_a_SOURCES += console/ps2_mouse.c
92libbsp_a_SOURCES += console/vgainit.c
93libbsp_a_SOURCES += console/vt.c
94libbsp_a_SOURCES += console/videoAsm.S
95libbsp_a_SOURCES += console/kbd_parser.c
96libbsp_a_SOURCES += console/vgacons.c
97include_bsp_HEADERS += console/fb_default_mode.h
98if USE_VGA
99libbsp_a_SOURCES += console/fb_vga.c
100endif
101if USE_CIRRUS_GD5446
102libbsp_a_SOURCES += console/fb_cirrus.c
103endif
104if USE_VBE_RM
105include_bsp_HEADERS += include/vbe3.h
106include_HEADERS += include/edid.h
107include_bsp_HEADERS += include/fb_vesa.h
108libbsp_a_SOURCES += console/fb_vesa_rm.c
109endif
110endif
111
112# console (non-graphics support)
113include_HEADERS += ../../i386/shared/comm/i386_io.h
114include_rtems_HEADERS += ../../shared/console_private.h
115libbsp_a_SOURCES += console/serial_mouse_config.c
116libbsp_a_SOURCES += ../../i386/shared/comm/uart.c
117libbsp_a_SOURCES += ../../i386/shared/comm/tty_drv.c
118libbsp_a_SOURCES += ../../i386/shared/realmode_int/realmode_int.c
119libbsp_a_SOURCES += ../../shared/console.c
120libbsp_a_SOURCES += console/console_select.c
121libbsp_a_SOURCES += ../../shared/console_read.c
122libbsp_a_SOURCES += ../../shared/console_write.c
123libbsp_a_SOURCES += console/console_control.c
124libbsp_a_SOURCES += console/conscfg.c
125libbsp_a_SOURCES += console/printk_support.c
126libbsp_a_SOURCES += console/exar17d15x.c
127libbsp_a_SOURCES += console/rtd316.c
128libbsp_a_SOURCES += console/uart_bus_pci.c
129libbsp_a_SOURCES += console/gdb_select.c
130
131# gdb
132libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub.c
133libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub-glue.c
134libbsp_a_SOURCES += ../../i386/shared/comm/gdb_glue.c
135
136# gnat
137libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
138
139# pci
140libbsp_a_SOURCES += ../../i386/shared/pci/pcibios.c
141libbsp_a_SOURCES += ../../i386/shared/pci/pci_io.c
142libbsp_a_SOURCES += ../../shared/pci/pci_bus_count.c
143libbsp_a_SOURCES += ../../shared/pci/pci_find_device.c
144
145include_HEADERS += ../../i386/shared/comm/uart.h
146# startup
147libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
148libbsp_a_SOURCES += startup/bsp_fatal_halt.c
149libbsp_a_SOURCES += startup/bspgetworkarea.c
150libbsp_a_SOURCES += startup/bspidle.S
151libbsp_a_SOURCES += startup/bspstart.c
152libbsp_a_SOURCES += startup/bspcmdline.c
153libbsp_a_SOURCES += ../../shared/bspclean.c
154libbsp_a_SOURCES += startup/bspreset.c
155libbsp_a_SOURCES += ../../i386/shared/irq/idt.c
156libbsp_a_SOURCES += ../../i386/shared/irq/irq.c
157libbsp_a_SOURCES += ../../i386/shared/irq/irq_init.c
158libbsp_a_SOURCES += ../../i386/shared/irq/elcr.c
159libbsp_a_SOURCES += ../../shared/bootcard.c
160libbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
161libbsp_a_SOURCES += ../../shared/sbrk.c
162libbsp_a_SOURCES += startup/ldsegs.S
163libbsp_a_SOURCES += ../../i386/shared/irq/irq_asm.S
164libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
165libbsp_a_SOURCES += ../../shared/src/irq-generic.c
166libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
167libbsp_a_SOURCES += ../../shared/src/irq-info.c
168libbsp_a_SOURCES += ../../shared/src/irq-shell.c
169libbsp_a_SOURCES += ../../shared/src/irq-server.c
170
171# timer
172libbsp_a_SOURCES += timer/timer.c timer/timerisr.S
173
174if HAS_IDE
175# ide
176libbsp_a_SOURCES += ide/ide.c
177libbsp_a_SOURCES += ide/idecfg.c
178endif
179
180if HAS_SMP
181libbsp_a_SOURCES += ../../i386/shared/smp/getcpuid.c
182libbsp_a_SOURCES += ../../i386/shared/smp/smp-imps.c
183
184project_lib_DATA += appstart.$(OBJEXT)
185appcpustart.$(OBJEXT): start/start16.S
186        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DSMP_SECONDARY_CORE -o $@ -c $<
187
188appstart.$(OBJEXT): appcpustart.$(OBJEXT)
189        $(LD) -N -T $(top_srcdir)/startup/linkcmds \
190            -Ttext 0x70000 -e app_processor_start -nostdlib \
191            -o appstart_tmp.exe $<
192        $(OBJCOPY) -O binary appstart_tmp.exe appstart.bin
193        $(OBJCOPY) -I binary -O elf32-i386 -B i386 appstart.bin $@
194endif
195
196if HAS_NETWORKING
197ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
198noinst_PROGRAMS += ne2000.rel
199ne2000_rel_SOURCES = ne2000/ne2000.c
200ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
201ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
202ne2000_rel_LDFLAGS += -Wl,--undefined=rtems_ne_driver_attach
203endif
204
205if HAS_NETWORKING
206# This driver needs to be reworked for the BSD stack.
207# We only install wd80x3.h if HAS_NETWORKING was defined
208include_HEADERS += include/wd80x3.h
209
210wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
211noinst_PROGRAMS += wd8003.rel
212wd8003_rel_SOURCES = wd8003/wd8003.c
213wd8003_rel_SOURCES += include/wd80x3.h
214wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
215wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
216wd8003_rel_LDFLAGS += -Wl,--undefined=rtems_wd_driver_attach
217endif
218
219if HAS_NETWORKING
2203c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
221noinst_PROGRAMS += 3c509.rel
2223c509_rel_SOURCES = 3c509/3c509.c
2233c509_rel_SOURCES += 3c509/3c509.h
2243c509_rel_SOURCES += 3c509/elink.c
2253c509_rel_SOURCES += 3c509/elink.h
2263c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
2273c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
2283c509_rel_LDFLAGS += -Wl,--undefined=rtems_3c509_driver_attach
2293c509_rel_LDFLAGS += -Wl,--undefined=ep_board
230endif
231
232libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel
233libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/page.rel
234libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/score.rel
235
236if HAS_SMP
237libbsp_a_LIBADD += appstart.$(OBJEXT)
238endif
239
240# We only build the Network library if HAS_NETWORKING was defined
241# dec21140 is supported via libchip
242if HAS_NETWORKING
243libbsp_a_LIBADD += ne2000.rel
244libbsp_a_LIBADD += wd8003.rel
245libbsp_a_LIBADD += 3c509.rel
246endif
247
248EXTRA_DIST += HOWTO
249EXTRA_DIST += README.dec21140
250EXTRA_DIST += STATUS
251EXTRA_DIST += times_i486dx
252EXTRA_DIST += times_p5
253
254include $(srcdir)/preinstall.am
255include $(top_srcdir)/../../../../automake/local.am
256include $(top_srcdir)/../../../../automake/subdirs.am
Note: See TracBrowser for help on using the repository browser.