1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | # FIXME: We must not include *.cfg |
---|
8 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
9 | |
---|
10 | CLEANFILES = |
---|
11 | |
---|
12 | include $(top_srcdir)/../../../../automake/compile.am |
---|
13 | include $(top_srcdir)/../../bsp.am |
---|
14 | |
---|
15 | include_bspdir = $(includedir)/bsp |
---|
16 | |
---|
17 | dist_project_lib_DATA = bsp_specs |
---|
18 | |
---|
19 | include_HEADERS = include/bsp.h |
---|
20 | include_HEADERS += include/tm27.h |
---|
21 | |
---|
22 | nodist_include_HEADERS = include/bspopts.h |
---|
23 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
24 | DISTCLEANFILES = include/bspopts.h |
---|
25 | |
---|
26 | noinst_PROGRAMS = |
---|
27 | |
---|
28 | SUBDIRS = . tools |
---|
29 | |
---|
30 | include_bsp_HEADERS = ../../i386/shared/irq/irq.h \ |
---|
31 | ../../i386/shared/irq/irq_asm.h |
---|
32 | |
---|
33 | include_HEADERS += include/crt.h |
---|
34 | nodist_include_HEADERS += ../../shared/include/coverhd.h |
---|
35 | |
---|
36 | EXTRA_DIST = start/start.S |
---|
37 | start.$(OBJEXT): start/start.S |
---|
38 | $(CPPASCOMPILE) -o $@ -c $< |
---|
39 | |
---|
40 | project_lib_DATA = start.$(OBJEXT) |
---|
41 | |
---|
42 | EXTRA_DIST += start/start16.S |
---|
43 | start16.$(OBJEXT): start/start16.S |
---|
44 | $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $< |
---|
45 | |
---|
46 | start16-elf32.$(OBJEXT): start16.$(OBJEXT) |
---|
47 | $(LD) -N -T $(top_srcdir)/startup/linkcmds -Ttext $(START16ADDR) -e start16 -nostdlib \ |
---|
48 | --oformat=elf32-i386 \ |
---|
49 | -o $@ $< |
---|
50 | |
---|
51 | start16.bin: start16-elf32.$(OBJEXT) |
---|
52 | $(OBJCOPY) -O binary $< $@ |
---|
53 | CLEANFILES += start16.bin |
---|
54 | |
---|
55 | project_lib_DATA += start16.bin |
---|
56 | |
---|
57 | dist_project_lib_DATA += startup/linkcmds |
---|
58 | |
---|
59 | clock_SOURCES = clock/ckinit.c clock/todcfg.c ../../shared/tod.c |
---|
60 | |
---|
61 | include_rtemsdir = $(includedir)/rtems |
---|
62 | include_rtems_HEADERS = console/keyboard.h console/kd.h \ |
---|
63 | console/serial_mouse.h console/ps2_drv.h console/fb_vga.h |
---|
64 | |
---|
65 | include_HEADERS += ../../i386/shared/comm/i386_io.h |
---|
66 | console_SOURCES = console/console.c console/inch.c console/outch.c \ |
---|
67 | console/defkeymap.c console/fb_vga.c console/keyboard.c \ |
---|
68 | console/mouse_parser.c console/pc_keyb.c console/ps2_mouse.c \ |
---|
69 | console/serial_mouse.c console/vgainit.c console/vt.c console/videoAsm.S \ |
---|
70 | ../../i386/shared/comm/uart.c ../../i386/shared/comm/tty_drv.c |
---|
71 | |
---|
72 | gdb_SOURCES = ../../i386/shared/comm/i386-stub.c \ |
---|
73 | ../../i386/shared/comm/i386-stub-glue.c \ |
---|
74 | ../../i386/shared/comm/gdb_glue.c |
---|
75 | |
---|
76 | gnat_SOURCES = ../../shared/gnatinstallhandler.c |
---|
77 | |
---|
78 | include_HEADERS += ../../i386/shared/pci/pcibios.h |
---|
79 | pci_SOURCES = ../../i386/shared/pci/pcibios.c \ |
---|
80 | ../../i386/shared/pci/pcibios.h |
---|
81 | |
---|
82 | include_HEADERS += ../../i386/shared/comm/uart.h |
---|
83 | startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \ |
---|
84 | ../../shared/bsppredriverhook.c startup/bspgetworkarea.c \ |
---|
85 | ../../shared/bsppretaskinghook.c startup/bspstart.c \ |
---|
86 | ../../shared/bspclean.c startup/bspreset.c ../../i386/shared/irq/idt.c \ |
---|
87 | ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \ |
---|
88 | ../../shared/bootcard.c ../../shared/sbrk.c \ |
---|
89 | startup/ldsegs.S ../../i386/shared/irq/irq_asm.S |
---|
90 | |
---|
91 | timer_SOURCES = timer/timer.c timer/timerisr.S |
---|
92 | |
---|
93 | ide_SOURCES = ide/idecfg.c ide/ide.c |
---|
94 | |
---|
95 | if HAS_NETWORKING |
---|
96 | ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
97 | noinst_PROGRAMS += ne2000.rel |
---|
98 | ne2000_rel_SOURCES = ne2000/ne2000.c |
---|
99 | ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS) |
---|
100 | ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
101 | endif |
---|
102 | |
---|
103 | if HAS_NETWORKING |
---|
104 | # This driver needs to be reworked for the BSD stack. |
---|
105 | # We only install wd80x3.h if HAS_NETWORKING was defined |
---|
106 | include_HEADERS += include/wd80x3.h |
---|
107 | |
---|
108 | wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
109 | noinst_PROGRAMS += wd8003.rel |
---|
110 | wd8003_rel_SOURCES = wd8003/wd8003.c include/wd80x3.h |
---|
111 | wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS) |
---|
112 | wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
113 | endif |
---|
114 | |
---|
115 | if HAS_NETWORKING |
---|
116 | 3c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
117 | noinst_PROGRAMS += 3c509.rel |
---|
118 | 3c509_rel_SOURCES = 3c509/3c509.c 3c509/3c509.h 3c509/elink.c 3c509/elink.h |
---|
119 | 3c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS) |
---|
120 | 3c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
121 | endif |
---|
122 | |
---|
123 | noinst_LIBRARIES = libbsp.a |
---|
124 | libbsp_a_SOURCES = $(clock_SOURCES) $(console_SOURCES) $(gdb_SOURCES) \ |
---|
125 | $(gnat_SOURCES) $(pci_SOURCES) $(startup_SOURCES) $(timer_SOURCES) \ |
---|
126 | $(ide_SOURCES) |
---|
127 | |
---|
128 | libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \ |
---|
129 | ../../../libcpu/@RTEMS_CPU@/page.rel \ |
---|
130 | ../../../libcpu/@RTEMS_CPU@/score.rel |
---|
131 | # We only build the Network library if HAS_NETWORKING was defined |
---|
132 | # dec21140 is supported via libchip |
---|
133 | if HAS_NETWORKING |
---|
134 | libbsp_a_LIBADD += ne2000.rel wd8003.rel 3c509.rel |
---|
135 | endif |
---|
136 | |
---|
137 | EXTRA_DIST += HOWTO README.dec21140 STATUS times_i486dx times_p5 |
---|
138 | |
---|
139 | include $(srcdir)/preinstall.am |
---|
140 | include $(top_srcdir)/../../../../automake/local.am |
---|