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

4.115
Last change on this file since 1c0b8d7 was 1c0b8d7, checked in by Jennifer Averett <Jennifer.Averett@…>, on 11/18/11 at 20:11:08

2011-11-18 Jennifer Averett <Jennifer.Averett@…>

PR 1925

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