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

4.115
Last change on this file since e870941 was e870941, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 4, 2014 at 8:38:27 AM

libmisc: More useful default configuration

The dummy.c was a de-facto default configuration. Rename it to
default-configuration.c. Use unlimited objects and the stack checker.
This makes it easier for new RTEMS users which will likely use this file
if they just work with the usual main() function as the application
entry point. Provide proper arguments for main() using the BSP command
line. Add spare user extensions and drivers.

Do not initialize the network by default. Delete bspinit.c.

  • Property mode set to 100644
File size: 7.3 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 = console/keyboard.h
78include_rtems_HEADERS += console/kd.h
79include_rtems_HEADERS += console/ps2_drv.h
80include_rtems_HEADERS += ../../shared/console_private.h
81include_rtems_HEADERS += console/vgacons.h
82
83include_HEADERS += ../../i386/shared/comm/i386_io.h
84# console
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/serial_mouse_config.c
96libbsp_a_SOURCES += ../../i386/shared/comm/uart.c
97libbsp_a_SOURCES += ../../i386/shared/comm/tty_drv.c
98libbsp_a_SOURCES += ../../i386/shared/realmode_int/realmode_int.c
99libbsp_a_SOURCES += ../../shared/console.c
100libbsp_a_SOURCES += console/console_select.c
101libbsp_a_SOURCES += ../../shared/console_read.c
102libbsp_a_SOURCES += ../../shared/console_write.c
103libbsp_a_SOURCES += console/console_control.c
104libbsp_a_SOURCES += console/conscfg.c
105libbsp_a_SOURCES += console/printk_support.c
106libbsp_a_SOURCES += console/vgacons.c
107libbsp_a_SOURCES += console/exar17d15x.c
108libbsp_a_SOURCES += console/rtd316.c
109if USE_VBE_RM
110include_bsp_HEADERS += include/vbe3.h
111include_HEADERS += include/edid.h
112include_bsp_HEADERS += include/fb_vesa.h
113libbsp_a_SOURCES += console/fb_vesa_rm.c
114else
115if USE_CIRRUS_GD5446
116libbsp_a_SOURCES += console/fb_cirrus.c
117else
118libbsp_a_SOURCES += console/fb_vga.c
119endif
120endif
121
122# gdb
123libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub.c
124libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub-glue.c
125libbsp_a_SOURCES += ../../i386/shared/comm/gdb_glue.c
126
127# gnat
128libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
129
130include_HEADERS += ../../i386/shared/pci/pcibios.h
131# pci
132libbsp_a_SOURCES += ../../i386/shared/pci/pcibios.c \
133    ../../i386/shared/pci/pcibios.h
134
135include_HEADERS += ../../i386/shared/comm/uart.h
136# startup
137libbsp_a_SOURCES += ../../shared/bsplibc.c
138libbsp_a_SOURCES += ../../shared/bsppost.c
139libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
140libbsp_a_SOURCES += startup/bspgetworkarea.c
141libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
142libbsp_a_SOURCES += startup/bspstart.c
143libbsp_a_SOURCES += startup/bspcmdline.c
144libbsp_a_SOURCES += ../../shared/bspclean.c
145libbsp_a_SOURCES += startup/bspreset.c
146libbsp_a_SOURCES += ../../i386/shared/irq/idt.c
147libbsp_a_SOURCES += ../../i386/shared/irq/irq.c
148libbsp_a_SOURCES += ../../i386/shared/irq/irq_init.c
149libbsp_a_SOURCES += ../../shared/bootcard.c
150libbsp_a_SOURCES += ../../shared/sbrk.c
151libbsp_a_SOURCES += startup/ldsegs.S
152libbsp_a_SOURCES += ../../i386/shared/irq/irq_asm.S
153libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
154libbsp_a_SOURCES += ../../shared/src/irq-generic.c
155libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
156libbsp_a_SOURCES += ../../shared/src/irq-info.c
157libbsp_a_SOURCES += ../../shared/src/irq-shell.c
158libbsp_a_SOURCES += ../../shared/src/irq-server.c
159
160# timer
161libbsp_a_SOURCES += timer/timer.c timer/timerisr.S
162
163# ide
164libbsp_a_SOURCES += ide/idecfg.c ide/ide.c
165
166if HAS_SMP
167libbsp_a_SOURCES += ../../i386/shared/smp/getcpuid.c
168libbsp_a_SOURCES += ../../i386/shared/smp/smp-imps.c
169
170project_lib_DATA += appstart.$(OBJEXT)
171appcpustart.$(OBJEXT): start/start16.S
172        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DSMP_SECONDARY_CORE -o $@ -c $<
173
174appstart.$(OBJEXT): appcpustart.$(OBJEXT)
175        $(LD) -N -T $(top_srcdir)/startup/linkcmds \
176            -Ttext 0x70000 -e app_processor_start -nostdlib \
177            -o appstart_tmp.exe $<
178        $(OBJCOPY) -O binary appstart_tmp.exe appstart.bin
179        $(OBJCOPY) -I binary -O elf32-i386 -B i386 appstart.bin $@
180endif
181
182if HAS_NETWORKING
183ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
184noinst_PROGRAMS += ne2000.rel
185ne2000_rel_SOURCES = ne2000/ne2000.c
186ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
187ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
188endif
189
190if HAS_NETWORKING
191# This driver needs to be reworked for the BSD stack.
192# We only install wd80x3.h if HAS_NETWORKING was defined
193include_HEADERS += include/wd80x3.h
194
195wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
196noinst_PROGRAMS += wd8003.rel
197wd8003_rel_SOURCES = wd8003/wd8003.c
198wd8003_rel_SOURCES += include/wd80x3.h
199wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
200wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
201endif
202
203if HAS_NETWORKING
2043c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
205noinst_PROGRAMS += 3c509.rel
2063c509_rel_SOURCES = 3c509/3c509.c
2073c509_rel_SOURCES += 3c509/3c509.h
2083c509_rel_SOURCES += 3c509/elink.c
2093c509_rel_SOURCES += 3c509/elink.h
2103c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
2113c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
212endif
213
214libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel
215libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/page.rel
216libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/score.rel
217
218if HAS_SMP
219libbsp_a_LIBADD += appstart.$(OBJEXT)
220endif
221
222# We only build the Network library if HAS_NETWORKING was defined
223# dec21140 is supported via libchip
224if HAS_NETWORKING
225libbsp_a_LIBADD += ne2000.rel
226libbsp_a_LIBADD += wd8003.rel
227libbsp_a_LIBADD += 3c509.rel
228endif
229
230EXTRA_DIST += HOWTO
231EXTRA_DIST += README.dec21140
232EXTRA_DIST += STATUS
233EXTRA_DIST += times_i486dx
234EXTRA_DIST += times_p5
235
236include $(srcdir)/preinstall.am
237include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.