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

4.115
Last change on this file since dc1c997b was dc1c997b, checked in by Jennifer Averett <Jennifer.Averett@…>, on 05/25/11 at 14:38:45

2011-05-25 Jennifer Averett <Jennifer.Averett@…>

PR 1792/bsps

  • src/lib/libbsp/i386/pc386/Makefile.am, src/lib/libbsp/sparc/erc32/Makefile.am, src/lib/libbsp/sparc/leon2/Makefile.am, src/lib/libbsp/sparc/leon3/Makefile.am: Added a generic smp wait method to sparc and i386 bsps.
  • src/lib/libbsp/shared/smp/bspsmp_wait_for.c: New file.
  • Property mode set to 100644
File size: 4.7 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
34include_HEADERS += include/crt.h
35nodist_include_HEADERS += ../../shared/include/coverhd.h
36
37noinst_LIBRARIES = libbspstart.a
38libbspstart_a_SOURCES = start/start.S
39project_lib_DATA = start.$(OBJEXT)
40
41EXTRA_DIST = start/start16.S
42start16.$(OBJEXT): start/start16.S
43        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $<
44
45start16-elf32.$(OBJEXT): start16.$(OBJEXT)
46        $(LD) -N -T $(top_srcdir)/startup/linkcmds -Ttext $(START16ADDR) -e start16 -nostdlib \
47          --oformat=elf32-i386 \
48        -o $@ $<
49
50start16.bin: start16-elf32.$(OBJEXT)
51        $(OBJCOPY) -O binary $< $@
52CLEANFILES += start16.bin
53
54project_lib_DATA += start16.bin
55
56dist_project_lib_DATA += startup/linkcmds
57
58noinst_LIBRARIES += libbsp.a
59libbsp_a_SOURCES =
60
61# clock
62libbsp_a_SOURCES += clock/ckinit.c clock/todcfg.c ../../shared/tod.c \
63    ../../../shared/clockdrv_shell.h
64
65include_rtemsdir = $(includedir)/rtems
66include_rtems_HEADERS = console/keyboard.h console/kd.h console/ps2_drv.h
67
68include_HEADERS += ../../i386/shared/comm/i386_io.h
69# console
70libbsp_a_SOURCES += console/console.c console/inch.c console/outch.c \
71    console/defkeymap.c console/fb_vga.c console/keyboard.c \
72    console/pc_keyb.c console/ps2_mouse.c \
73    console/vgainit.c console/vt.c console/videoAsm.S \
74    console/kbd_parser.c console/serial_mouse_config.c \
75    ../../i386/shared/comm/uart.c ../../i386/shared/comm/tty_drv.c
76
77# gdb
78libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub.c \
79    ../../i386/shared/comm/i386-stub-glue.c \
80    ../../i386/shared/comm/gdb_glue.c
81
82# gnat
83libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
84
85include_HEADERS += ../../i386/shared/pci/pcibios.h
86# pci
87libbsp_a_SOURCES += ../../i386/shared/pci/pcibios.c \
88    ../../i386/shared/pci/pcibios.h
89
90include_HEADERS += ../../i386/shared/comm/uart.h
91# startup
92libbsp_a_SOURCES += ../../shared/bsplibc.c ../../shared/bsppost.c \
93    ../../shared/bsppredriverhook.c startup/bspgetworkarea.c \
94    ../../shared/bsppretaskinghook.c startup/bspstart.c startup/bspcmdline.c \
95    ../../shared/bspclean.c startup/bspreset.c ../../i386/shared/irq/idt.c \
96    ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
97    ../../shared/bootcard.c ../../shared/bspinit.c ../../shared/sbrk.c \
98    startup/ldsegs.S ../../i386/shared/irq/irq_asm.S \
99    ../../shared/src/irq-generic.c \
100    ../../shared/src/irq-legacy.c \
101    ../../shared/src/irq-info.c \
102    ../../shared/src/irq-shell.c \
103    ../../shared/src/irq-server.c
104
105# timer
106libbsp_a_SOURCES += timer/timer.c timer/timerisr.S
107
108# ide
109libbsp_a_SOURCES += ide/idecfg.c ide/ide.c
110
111if HAS_SMP
112libbsp_a_SOURCES += ../../shared/smp/getcpuid.c ../../shared/smp/smp_stub.c \
113    ../../shared/smp/bspsmp_wait_for.c
114endif
115
116if HAS_NETWORKING
117ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
118noinst_PROGRAMS += ne2000.rel
119ne2000_rel_SOURCES = ne2000/ne2000.c
120ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
121ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
122endif
123
124if HAS_NETWORKING
125# This driver needs to be reworked for the BSD stack.
126# We only install wd80x3.h if HAS_NETWORKING was defined
127include_HEADERS += include/wd80x3.h
128
129wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
130noinst_PROGRAMS += wd8003.rel
131wd8003_rel_SOURCES = wd8003/wd8003.c include/wd80x3.h
132wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
133wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
134endif
135
136if HAS_NETWORKING
1373c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
138noinst_PROGRAMS += 3c509.rel
1393c509_rel_SOURCES = 3c509/3c509.c 3c509/3c509.h 3c509/elink.c 3c509/elink.h
1403c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
1413c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
142endif
143
144libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \
145    ../../../libcpu/@RTEMS_CPU@/page.rel \
146    ../../../libcpu/@RTEMS_CPU@/score.rel
147# We only build the Network library if HAS_NETWORKING was defined
148# dec21140 is supported via libchip
149if HAS_NETWORKING
150libbsp_a_LIBADD += ne2000.rel wd8003.rel 3c509.rel
151endif
152
153EXTRA_DIST += HOWTO README.dec21140 STATUS times_i486dx times_p5
154
155include $(srcdir)/preinstall.am
156include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.