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

Last change on this file since 030ce68 was ec32100, checked in by Sebastian Huber <sebastian.huber@…>, on Jan 2, 2018 at 6:37:44 AM

bsps: Use CPPASCOMPILE for startfile

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