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

4.115
Last change on this file since 8a7ed82 was 8a7ed82, checked in by Jennifer Averett <Jennifer.Averett@…>, on Aug 1, 2011 at 1:41:37 PM

2011-08-01 Jennifer Averett <Jennifer.Averett@…>

PR 1802

  • Makefile.am, configure.ac, preinstall.am, clock/ckinit.c, start/start16.S, startup/bspstart.c, startup/ldsegs.S: Add SMP support for i386.
  • Property mode set to 100644
File size: 5.3 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
73include_HEADERS += ../../i386/shared/comm/i386_io.h
74# console
75libbsp_a_SOURCES += console/console.c console/inch.c console/outch.c \
76    console/defkeymap.c console/fb_vga.c console/keyboard.c \
77    console/pc_keyb.c console/ps2_mouse.c \
78    console/vgainit.c console/vt.c console/videoAsm.S \
79    console/kbd_parser.c console/serial_mouse_config.c \
80    ../../i386/shared/comm/uart.c ../../i386/shared/comm/tty_drv.c
81
82# gdb
83libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub.c \
84    ../../i386/shared/comm/i386-stub-glue.c \
85    ../../i386/shared/comm/gdb_glue.c
86
87# gnat
88libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
89
90include_HEADERS += ../../i386/shared/pci/pcibios.h
91# pci
92libbsp_a_SOURCES += ../../i386/shared/pci/pcibios.c \
93    ../../i386/shared/pci/pcibios.h
94
95include_HEADERS += ../../i386/shared/comm/uart.h
96# startup
97libbsp_a_SOURCES += ../../shared/bsplibc.c ../../shared/bsppost.c \
98    ../../shared/bsppredriverhook.c startup/bspgetworkarea.c \
99    ../../shared/bsppretaskinghook.c startup/bspstart.c startup/bspcmdline.c \
100    ../../shared/bspclean.c startup/bspreset.c ../../i386/shared/irq/idt.c \
101    ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
102    ../../shared/bootcard.c ../../shared/bspinit.c ../../shared/sbrk.c \
103    startup/ldsegs.S ../../i386/shared/irq/irq_asm.S \
104    ../../shared/src/irq-generic.c \
105    ../../shared/src/irq-legacy.c \
106    ../../shared/src/irq-info.c \
107    ../../shared/src/irq-shell.c \
108    ../../shared/src/irq-server.c
109
110# timer
111libbsp_a_SOURCES += timer/timer.c timer/timerisr.S
112
113# ide
114libbsp_a_SOURCES += ide/idecfg.c ide/ide.c
115
116if HAS_SMP
117libbsp_a_SOURCES += ../../i386/shared/smp/getcpuid.c
118libbsp_a_SOURCES += ../../i386/shared/smp/smp-imps.c
119
120project_lib_DATA += appstart.$(OBJEXT)
121appcpustart.$(OBJEXT): start/start16.S
122        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DSMP_SECONDARY_CORE -o $@ -c $<
123
124appstart.$(OBJEXT): appcpustart.$(OBJEXT)
125        $(LD) -N -T $(top_srcdir)/startup/linkcmds \
126            -Ttext 0x70000 -e app_processor_start -nostdlib \
127            -o appstart_tmp.exe $<
128        $(OBJCOPY) -O binary appstart_tmp.exe appstart.bin
129        $(OBJCOPY) -I binary -O elf32-i386 -B i386 appstart.bin $@
130endif
131
132if HAS_NETWORKING
133ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
134noinst_PROGRAMS += ne2000.rel
135ne2000_rel_SOURCES = ne2000/ne2000.c
136ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
137ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
138endif
139
140if HAS_NETWORKING
141# This driver needs to be reworked for the BSD stack.
142# We only install wd80x3.h if HAS_NETWORKING was defined
143include_HEADERS += include/wd80x3.h
144
145wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
146noinst_PROGRAMS += wd8003.rel
147wd8003_rel_SOURCES = wd8003/wd8003.c include/wd80x3.h
148wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
149wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
150endif
151
152if HAS_NETWORKING
1533c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
154noinst_PROGRAMS += 3c509.rel
1553c509_rel_SOURCES = 3c509/3c509.c 3c509/3c509.h 3c509/elink.c 3c509/elink.h
1563c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
1573c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
158endif
159
160libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \
161    ../../../libcpu/@RTEMS_CPU@/page.rel \
162    ../../../libcpu/@RTEMS_CPU@/score.rel
163
164if HAS_SMP
165libbsp_a_LIBADD += appstart.$(OBJEXT)
166endif
167
168# We only build the Network library if HAS_NETWORKING was defined
169# dec21140 is supported via libchip
170if HAS_NETWORKING
171libbsp_a_LIBADD += ne2000.rel wd8003.rel 3c509.rel
172endif
173
174EXTRA_DIST += HOWTO README.dec21140 STATUS times_i486dx times_p5
175
176include $(srcdir)/preinstall.am
177include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.