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

Last change on this file since f3ce8f41 was f3ce8f41, checked in by Sebastian Huber <sebastian.huber@…>, on Jan 2, 2018 at 7:00:02 AM

bsps: Include bsp.am in all BSP Makefile.am

Update #3254.

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