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

4.11
Last change on this file since 93546b8 was 93546b8, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 11, 2014 at 9:16:34 PM

pc386: Add BSP_ENABLE_IDE BSP option

This allows the IDE support to be completely disabled. It is needed to
prevent hangs on some hardware. In particular, the Intel Edison where
it is not present.

  • Property mode set to 100644
File size: 7.4 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
12
13include_bspdir = $(includedir)/bsp
14
15dist_project_lib_DATA = bsp_specs
16
17include_HEADERS = include/bsp.h
18include_HEADERS += include/tm27.h
19
20nodist_include_HEADERS = include/bspopts.h
21nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
22DISTCLEANFILES = include/bspopts.h
23
24noinst_PROGRAMS =
25
26SUBDIRS = . tools
27
28include_bsp_HEADERS  = ../../i386/shared/irq/irq.h
29include_bsp_HEADERS += ../../i386/shared/irq/irq_asm.h
30include_bsp_HEADERS += ../../i386/shared/comm/tty_drv.h
31include_bsp_HEADERS += ../../i386/shared/realmode_int/realmode_int.h
32include_bsp_HEADERS += ../../shared/include/irq-generic.h
33include_bsp_HEADERS += ../../shared/include/irq-info.h
34include_bsp_HEADERS += console/rtd316.h
35include_bsp_HEADERS += console/exar17d15x.h
36include_bsp_HEADERS += include/tblsizes.h
37
38if HAS_SMP
39include_bsp_HEADERS += ../../i386/shared/irq/apic.h
40include_bsp_HEADERS += ../../i386/shared/smp/smp-imps.h
41endif
42
43include_HEADERS += include/crt.h
44nodist_include_HEADERS += ../../shared/include/coverhd.h
45
46noinst_LIBRARIES = libbspstart.a
47libbspstart_a_SOURCES = start/start.S
48project_lib_DATA = start.$(OBJEXT)
49
50EXTRA_DIST = start/start16.S
51start16.$(OBJEXT): start/start16.S
52        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $<
53
54start16-elf32.$(OBJEXT): start16.$(OBJEXT)
55        $(LD) -N -T $(top_srcdir)/startup/linkcmds -Ttext $(START16ADDR) -e start16 -nostdlib \
56          --oformat=elf32-i386 \
57        -o $@ $<
58
59start16.bin: start16-elf32.$(OBJEXT)
60        $(OBJCOPY) -O binary $< $@
61CLEANFILES += start16.bin
62
63project_lib_DATA += start16.bin
64
65dist_project_lib_DATA += startup/linkcmds
66
67noinst_LIBRARIES += libbsp.a
68libbsp_a_SOURCES =
69
70# clock
71libbsp_a_SOURCES += clock/ckinit.c
72libbsp_a_SOURCES += clock/todcfg.c
73libbsp_a_SOURCES += ../../shared/tod.c
74libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
75
76include_rtemsdir = $(includedir)/rtems
77include_rtems_HEADERS  =
78
79if RTEMS_VGA
80include_rtems_HEADERS += console/keyboard.h
81include_rtems_HEADERS += console/kd.h
82include_rtems_HEADERS += console/ps2_drv.h
83include_rtems_HEADERS += ../../shared/console_private.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
96if USE_VBE_RM
97include_bsp_HEADERS += include/vbe3.h
98include_HEADERS += include/edid.h
99include_bsp_HEADERS += include/fb_vesa.h
100libbsp_a_SOURCES += console/fb_vesa_rm.c
101else
102if USE_CIRRUS_GD5446
103libbsp_a_SOURCES += console/fb_cirrus.c
104else
105libbsp_a_SOURCES += console/fb_vga.c
106endif
107endif
108endif
109
110# console (non-graphics support)
111include_HEADERS += ../../i386/shared/comm/i386_io.h
112libbsp_a_SOURCES += console/serial_mouse_config.c
113libbsp_a_SOURCES += ../../i386/shared/comm/uart.c
114libbsp_a_SOURCES += ../../i386/shared/comm/tty_drv.c
115libbsp_a_SOURCES += ../../i386/shared/realmode_int/realmode_int.c
116libbsp_a_SOURCES += ../../shared/console.c
117libbsp_a_SOURCES += console/console_select.c
118libbsp_a_SOURCES += ../../shared/console_read.c
119libbsp_a_SOURCES += ../../shared/console_write.c
120libbsp_a_SOURCES += console/console_control.c
121libbsp_a_SOURCES += console/conscfg.c
122libbsp_a_SOURCES += console/printk_support.c
123libbsp_a_SOURCES += console/exar17d15x.c
124libbsp_a_SOURCES += console/rtd316.c
125
126# gdb
127libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub.c
128libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub-glue.c
129libbsp_a_SOURCES += ../../i386/shared/comm/gdb_glue.c
130
131# gnat
132libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
133
134include_HEADERS += ../../i386/shared/pci/pcibios.h
135# pci
136libbsp_a_SOURCES += ../../i386/shared/pci/pcibios.c \
137    ../../i386/shared/pci/pcibios.h
138
139include_HEADERS += ../../i386/shared/comm/uart.h
140# startup
141libbsp_a_SOURCES += ../../shared/bsplibc.c
142libbsp_a_SOURCES += ../../shared/bsppost.c
143libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
144libbsp_a_SOURCES += startup/bspgetworkarea.c
145libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
146libbsp_a_SOURCES += startup/bspstart.c
147libbsp_a_SOURCES += startup/bspcmdline.c
148libbsp_a_SOURCES += ../../shared/bspclean.c
149libbsp_a_SOURCES += startup/bspreset.c
150libbsp_a_SOURCES += ../../i386/shared/irq/idt.c
151libbsp_a_SOURCES += ../../i386/shared/irq/irq.c
152libbsp_a_SOURCES += ../../i386/shared/irq/irq_init.c
153libbsp_a_SOURCES += ../../shared/bootcard.c
154libbsp_a_SOURCES += ../../shared/sbrk.c
155libbsp_a_SOURCES += startup/ldsegs.S
156libbsp_a_SOURCES += ../../i386/shared/irq/irq_asm.S
157libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
158libbsp_a_SOURCES += ../../shared/src/irq-generic.c
159libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
160libbsp_a_SOURCES += ../../shared/src/irq-info.c
161libbsp_a_SOURCES += ../../shared/src/irq-shell.c
162libbsp_a_SOURCES += ../../shared/src/irq-server.c
163
164# timer
165libbsp_a_SOURCES += timer/timer.c timer/timerisr.S
166
167if HAS_IDE
168# ide
169libbsp_a_SOURCES += ide/ide.c
170libbsp_a_SOURCES += ide/idecfg.c
171endif
172
173if HAS_SMP
174libbsp_a_SOURCES += ../../i386/shared/smp/getcpuid.c
175libbsp_a_SOURCES += ../../i386/shared/smp/smp-imps.c
176
177project_lib_DATA += appstart.$(OBJEXT)
178appcpustart.$(OBJEXT): start/start16.S
179        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DSMP_SECONDARY_CORE -o $@ -c $<
180
181appstart.$(OBJEXT): appcpustart.$(OBJEXT)
182        $(LD) -N -T $(top_srcdir)/startup/linkcmds \
183            -Ttext 0x70000 -e app_processor_start -nostdlib \
184            -o appstart_tmp.exe $<
185        $(OBJCOPY) -O binary appstart_tmp.exe appstart.bin
186        $(OBJCOPY) -I binary -O elf32-i386 -B i386 appstart.bin $@
187endif
188
189if HAS_NETWORKING
190ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
191noinst_PROGRAMS += ne2000.rel
192ne2000_rel_SOURCES = ne2000/ne2000.c
193ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
194ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
195endif
196
197if HAS_NETWORKING
198# This driver needs to be reworked for the BSD stack.
199# We only install wd80x3.h if HAS_NETWORKING was defined
200include_HEADERS += include/wd80x3.h
201
202wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
203noinst_PROGRAMS += wd8003.rel
204wd8003_rel_SOURCES = wd8003/wd8003.c
205wd8003_rel_SOURCES += include/wd80x3.h
206wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
207wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
208endif
209
210if HAS_NETWORKING
2113c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
212noinst_PROGRAMS += 3c509.rel
2133c509_rel_SOURCES = 3c509/3c509.c
2143c509_rel_SOURCES += 3c509/3c509.h
2153c509_rel_SOURCES += 3c509/elink.c
2163c509_rel_SOURCES += 3c509/elink.h
2173c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
2183c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
219endif
220
221libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel
222libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/page.rel
223libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/score.rel
224
225if HAS_SMP
226libbsp_a_LIBADD += appstart.$(OBJEXT)
227endif
228
229# We only build the Network library if HAS_NETWORKING was defined
230# dec21140 is supported via libchip
231if HAS_NETWORKING
232libbsp_a_LIBADD += ne2000.rel
233libbsp_a_LIBADD += wd8003.rel
234libbsp_a_LIBADD += 3c509.rel
235endif
236
237EXTRA_DIST += HOWTO
238EXTRA_DIST += README.dec21140
239EXTRA_DIST += STATUS
240EXTRA_DIST += times_i486dx
241EXTRA_DIST += times_p5
242
243include $(srcdir)/preinstall.am
244include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.