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

4.104.11
Last change on this file since ef37cb6 was ef37cb6, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 18, 2008 at 8:41:09 PM

2008-09-18 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, startup/bspstart.c, startup/linkcmds: Add bsp_get_work_area() implementation and use more of the BSP Initialization Framework.
  • startup/bspgetworkarea.c: New file.
  • Property mode set to 100644
File size: 4.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
13include $(top_srcdir)/../../bsp.am
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
21DISTCLEANFILES = include/bspopts.h
22
23noinst_PROGRAMS =
24
25SUBDIRS = . tools
26
27include_bspdir = $(includedir)/bsp
28include_bsp_HEADERS = ../../i386/shared/irq/irq.h \
29    ../../i386/shared/irq/irq_asm.h
30
31include_HEADERS += include/crt.h
32nodist_include_HEADERS += ../../shared/include/coverhd.h
33
34EXTRA_DIST = start/start.S
35start.$(OBJEXT): start/start.S
36        $(CPPASCOMPILE) -o $@ -c $<
37
38project_lib_DATA = start.$(OBJEXT)
39
40EXTRA_DIST += start/start16.S
41start16.$(OBJEXT): start/start16.S
42        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $<
43
44start16-elf32.$(OBJEXT): start16.$(OBJEXT)
45        $(LD) -N -T $(top_srcdir)/startup/linkcmds -Ttext $(START16ADDR) -e start16 -nostdlib \
46          --oformat=elf32-i386 \
47        -o $@ $<
48
49start16.bin: start16-elf32.$(OBJEXT)
50        $(OBJCOPY) -O binary $< $@
51CLEANFILES += start16.bin
52
53project_lib_DATA += start16.bin
54
55dist_project_lib_DATA += startup/linkcmds
56
57clock_SOURCES = clock/ckinit.c clock/todcfg.c ../../shared/tod.c
58
59include_rtemsdir = $(includedir)/rtems
60include_rtems_HEADERS = console/keyboard.h console/kd.h \
61    console/serial_mouse.h console/ps2_drv.h console/fb_vga.h
62
63include_HEADERS += ../../i386/shared/comm/i386_io.h
64console_SOURCES = console/console.c console/inch.c console/outch.c \
65    console/defkeymap.c console/fb_vga.c console/keyboard.c \
66    console/mouse_parser.c console/pc_keyb.c console/ps2_mouse.c \
67    console/serial_mouse.c console/vgainit.c console/vt.c console/videoAsm.S \
68    ../../i386/shared/comm/uart.c ../../i386/shared/comm/tty_drv.c
69
70gdb_SOURCES = ../../i386/shared/comm/i386-stub.c \
71    ../../i386/shared/comm/i386-stub-glue.c \
72    ../../i386/shared/comm/gdb_glue.c
73
74gnat_SOURCES = ../../shared/gnatinstallhandler.c
75
76include_HEADERS += ../../i386/shared/pci/pcibios.h
77pci_SOURCES = ../../i386/shared/pci/pcibios.c \
78    ../../i386/shared/pci/pcibios.h
79
80include_HEADERS += ../../i386/shared/comm/uart.h
81startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
82    ../../shared/bsppredriverhook.c startup/bspgetworkarea.c \
83    ../../shared/bsppretaskinghook.c \
84    startup/bspstart.c startup/bspclean.c ../../i386/shared/irq/idt.c \
85    ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
86    ../../shared/bootcard.c ../../shared/sbrk.c \
87    startup/ldsegs.S ../../i386/shared/irq/irq_asm.S
88
89timer_SOURCES = timer/timer.c timer/timerisr.S
90
91ide_SOURCES = ide/idecfg.c ide/ide.c
92
93if HAS_NETWORKING
94ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
95noinst_PROGRAMS += ne2000.rel
96ne2000_rel_SOURCES = ne2000/ne2000.c
97ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
98ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
99endif
100
101if HAS_NETWORKING
102# This driver needs to be reworked for the BSD stack.
103# We only install wd80x3.h if HAS_NETWORKING was defined
104include_HEADERS += include/wd80x3.h
105
106wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
107noinst_PROGRAMS += wd8003.rel
108wd8003_rel_SOURCES = wd8003/wd8003.c include/wd80x3.h
109wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
110wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
111endif
112
113if HAS_NETWORKING
1143c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
115noinst_PROGRAMS += 3c509.rel
1163c509_rel_SOURCES = 3c509/3c509.c 3c509/3c509.h 3c509/elink.c 3c509/elink.h
1173c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
1183c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
119endif
120
121noinst_LIBRARIES = libbsp.a
122libbsp_a_SOURCES = $(clock_SOURCES) $(console_SOURCES) $(gdb_SOURCES) \
123    $(gnat_SOURCES) $(pci_SOURCES) $(startup_SOURCES) $(timer_SOURCES) \
124    $(ide_SOURCES)
125
126libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \
127    ../../../libcpu/@RTEMS_CPU@/page.rel \
128    ../../../libcpu/@RTEMS_CPU@/score.rel
129# We only build the Network library if HAS_NETWORKING was defined
130# dec21140 is supported via libchip
131if HAS_NETWORKING
132libbsp_a_LIBADD += ne2000.rel wd8003.rel 3c509.rel
133endif
134
135
136EXTRA_DIST += HOWTO README.dec21140 STATUS times_i486dx times_p5
137
138include $(srcdir)/preinstall.am
139include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.