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

4.115
Last change on this file since 8d0913b8 was 8d0913b8, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 29, 2012 at 8:53:16 PM

PC386 - Add files missed in previous commit

  • Property mode set to 100644
File size: 6.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
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 += ../../shared/include/irq-generic.h
32include_bsp_HEADERS += ../../shared/include/irq-info.h
33include_bsp_HEADERS += console/rtd316.h
34include_bsp_HEADERS += console/exar17d15x.h
35
36if HAS_SMP
37include_bsp_HEADERS += ../../i386/shared/irq/apic.h
38include_bsp_HEADERS += ../../i386/shared/smp/smp-imps.h
39endif
40
41include_HEADERS += include/crt.h
42nodist_include_HEADERS += ../../shared/include/coverhd.h
43
44noinst_LIBRARIES = libbspstart.a
45libbspstart_a_SOURCES = start/start.S
46project_lib_DATA = start.$(OBJEXT)
47
48EXTRA_DIST = start/start16.S
49start16.$(OBJEXT): start/start16.S
50        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $<
51
52start16-elf32.$(OBJEXT): start16.$(OBJEXT)
53        $(LD) -N -T $(top_srcdir)/startup/linkcmds -Ttext $(START16ADDR) -e start16 -nostdlib \
54          --oformat=elf32-i386 \
55        -o $@ $<
56
57start16.bin: start16-elf32.$(OBJEXT)
58        $(OBJCOPY) -O binary $< $@
59CLEANFILES += start16.bin
60
61project_lib_DATA += start16.bin
62
63dist_project_lib_DATA += startup/linkcmds
64
65noinst_LIBRARIES += libbsp.a
66libbsp_a_SOURCES =
67
68# clock
69libbsp_a_SOURCES += clock/ckinit.c
70libbsp_a_SOURCES += clock/todcfg.c
71libbsp_a_SOURCES += ../../shared/tod.c
72libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
73
74include_rtemsdir = $(includedir)/rtems
75include_rtems_HEADERS = console/keyboard.h
76include_rtems_HEADERS += console/kd.h
77include_rtems_HEADERS += console/ps2_drv.h
78include_rtems_HEADERS += ../../shared/console_private.h
79include_rtems_HEADERS += console/vgacons.h
80
81include_HEADERS += ../../i386/shared/comm/i386_io.h
82# console
83libbsp_a_SOURCES += console/inch.c
84libbsp_a_SOURCES += console/outch.c
85libbsp_a_SOURCES += console/defkeymap.c
86libbsp_a_SOURCES += console/fb_vga.c
87libbsp_a_SOURCES += console/keyboard.c
88libbsp_a_SOURCES += console/pc_keyb.c
89libbsp_a_SOURCES += console/ps2_mouse.c
90libbsp_a_SOURCES += console/vgainit.c
91libbsp_a_SOURCES += console/vt.c
92libbsp_a_SOURCES += console/videoAsm.S
93libbsp_a_SOURCES += console/kbd_parser.c
94libbsp_a_SOURCES += console/serial_mouse_config.c
95libbsp_a_SOURCES += ../../i386/shared/comm/uart.c
96libbsp_a_SOURCES += ../../i386/shared/comm/tty_drv.c
97libbsp_a_SOURCES += ../../shared/console.c
98libbsp_a_SOURCES += console/console_select.c
99libbsp_a_SOURCES += ../../shared/console_read.c
100libbsp_a_SOURCES += ../../shared/console_write.c
101libbsp_a_SOURCES += console/console_control.c
102libbsp_a_SOURCES += console/conscfg.c
103libbsp_a_SOURCES += console/printk_support.c
104libbsp_a_SOURCES += console/vgacons.c
105libbsp_a_SOURCES += console/exar17d15x.c
106libbsp_a_SOURCES += console/rtd316.c
107
108# gdb
109libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub.c
110libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub-glue.c
111libbsp_a_SOURCES += ../../i386/shared/comm/gdb_glue.c
112
113# gnat
114libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
115
116include_HEADERS += ../../i386/shared/pci/pcibios.h
117# pci
118libbsp_a_SOURCES += ../../i386/shared/pci/pcibios.c \
119    ../../i386/shared/pci/pcibios.h
120
121include_HEADERS += ../../i386/shared/comm/uart.h
122# startup
123libbsp_a_SOURCES += ../../shared/bsplibc.c
124libbsp_a_SOURCES += ../../shared/bsppost.c
125libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
126libbsp_a_SOURCES += startup/bspgetworkarea.c
127libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
128libbsp_a_SOURCES += startup/bspstart.c
129libbsp_a_SOURCES += startup/bspcmdline.c
130libbsp_a_SOURCES += ../../shared/bspclean.c
131libbsp_a_SOURCES += startup/bspreset.c
132libbsp_a_SOURCES += ../../i386/shared/irq/idt.c
133libbsp_a_SOURCES += ../../i386/shared/irq/irq.c
134libbsp_a_SOURCES += ../../i386/shared/irq/irq_init.c
135libbsp_a_SOURCES += ../../shared/bootcard.c
136libbsp_a_SOURCES += ../../shared/bspinit.c
137libbsp_a_SOURCES += ../../shared/sbrk.c
138libbsp_a_SOURCES += startup/ldsegs.S
139libbsp_a_SOURCES += ../../i386/shared/irq/irq_asm.S
140libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
141libbsp_a_SOURCES += ../../shared/src/irq-generic.c
142libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
143libbsp_a_SOURCES += ../../shared/src/irq-info.c
144libbsp_a_SOURCES += ../../shared/src/irq-shell.c
145libbsp_a_SOURCES += ../../shared/src/irq-server.c
146
147# timer
148libbsp_a_SOURCES += timer/timer.c timer/timerisr.S
149
150# ide
151libbsp_a_SOURCES += ide/idecfg.c ide/ide.c
152
153if HAS_SMP
154libbsp_a_SOURCES += ../../i386/shared/smp/getcpuid.c
155libbsp_a_SOURCES += ../../i386/shared/smp/smp-imps.c
156
157project_lib_DATA += appstart.$(OBJEXT)
158appcpustart.$(OBJEXT): start/start16.S
159        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DSMP_SECONDARY_CORE -o $@ -c $<
160
161appstart.$(OBJEXT): appcpustart.$(OBJEXT)
162        $(LD) -N -T $(top_srcdir)/startup/linkcmds \
163            -Ttext 0x70000 -e app_processor_start -nostdlib \
164            -o appstart_tmp.exe $<
165        $(OBJCOPY) -O binary appstart_tmp.exe appstart.bin
166        $(OBJCOPY) -I binary -O elf32-i386 -B i386 appstart.bin $@
167endif
168
169if HAS_NETWORKING
170ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
171noinst_PROGRAMS += ne2000.rel
172ne2000_rel_SOURCES = ne2000/ne2000.c
173ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
174ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
175endif
176
177if HAS_NETWORKING
178# This driver needs to be reworked for the BSD stack.
179# We only install wd80x3.h if HAS_NETWORKING was defined
180include_HEADERS += include/wd80x3.h
181
182wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
183noinst_PROGRAMS += wd8003.rel
184wd8003_rel_SOURCES = wd8003/wd8003.c
185wd8003_rel_SOURCES += include/wd80x3.h
186wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
187wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
188endif
189
190if HAS_NETWORKING
1913c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
192noinst_PROGRAMS += 3c509.rel
1933c509_rel_SOURCES = 3c509/3c509.c
1943c509_rel_SOURCES += 3c509/3c509.h
1953c509_rel_SOURCES += 3c509/elink.c
1963c509_rel_SOURCES += 3c509/elink.h
1973c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
1983c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
199endif
200
201libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel
202libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/page.rel
203libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/score.rel
204
205if HAS_SMP
206libbsp_a_LIBADD += appstart.$(OBJEXT)
207endif
208
209# We only build the Network library if HAS_NETWORKING was defined
210# dec21140 is supported via libchip
211if HAS_NETWORKING
212libbsp_a_LIBADD += ne2000.rel
213libbsp_a_LIBADD += wd8003.rel
214libbsp_a_LIBADD += 3c509.rel
215endif
216
217EXTRA_DIST += HOWTO
218EXTRA_DIST += README.dec21140
219EXTRA_DIST += STATUS
220EXTRA_DIST += times_i486dx
221EXTRA_DIST += times_p5
222
223include $(srcdir)/preinstall.am
224include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.