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

Last change on this file since 5a4e3dc0 was 5a4e3dc0, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 23, 2018 at 10:50:58 AM

bsps: Move PCI drivers to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 7.0 KB
Line 
1##
2##
3
4ACLOCAL_AMFLAGS = -I ../../../../aclocal
5
6# FIXME: We must not include *.cfg
7include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
8
9CLEANFILES =
10
11include $(top_srcdir)/../../../../automake/compile.am
12include $(top_srcdir)/../../bsp.am
13
14dist_project_lib_DATA = ../../../../../../bsps/i386/pc386/start/bsp_specs
15
16
17noinst_PROGRAMS =
18
19_SUBDIRS = . tools
20
21TMPINSTALL_FILES =
22
23start.$(OBJEXT): ../../../../../../bsps/i386/pc386/start/start.S
24        $(CPPASCOMPILE) -o $@ -c $<
25project_lib_DATA = start.$(OBJEXT)
26
27start16.$(OBJEXT): ../../../../../../bsps/i386/pc386/start/start16.S
28        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $<
29
30start16-elf32.$(OBJEXT): start16.$(OBJEXT)
31        $(LD) -N -Ttext $(START16ADDR) -e start16 -nostdlib \
32          --oformat=elf32-i386 \
33        -o $@ $<
34
35start16.bin: start16-elf32.$(OBJEXT)
36        $(OBJCOPY) -O binary $< $@
37CLEANFILES += start16.bin
38
39$(PROJECT_LIB)/start16.bin: start16.bin $(PROJECT_LIB)/$(dirstamp)
40        $(INSTALL_DATA) $< $(PROJECT_LIB)/start16.bin
41TMPINSTALL_FILES += $(PROJECT_LIB)/start16.bin
42
43project_lib_DATA += start16.bin
44
45project_lib_DATA += linkcmds
46
47project_lib_LIBRARIES = librtemsbsp.a
48librtemsbsp_a_SOURCES =
49
50# clock
51librtemsbsp_a_SOURCES +=../../../../../../bsps/i386/pc386/clock/ckinit.c
52librtemsbsp_a_SOURCES +=../../../../../../bsps/i386/pc386/clock/todcfg.c
53librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/rtc/rtc-support.c
54
55if RTEMS_VGA
56librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/inch.c
57librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/outch.c
58librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/defkeymap.c
59librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/keyboard.c
60librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/pc_keyb.c
61librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/ps2_mouse.c
62librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/vgainit.c
63librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/vt.c
64librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/videoAsm.S
65librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/kbd_parser.c
66librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/vgacons.c
67if USE_VGA
68librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/fb_vga.c
69endif
70if USE_CIRRUS_GD5446
71librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/fb_cirrus.c
72endif
73if USE_VBE_RM
74librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/fb_vesa_rm.c
75endif
76endif
77
78# console (non-graphics support)
79librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/serial_mouse_config.c
80librtemsbsp_a_SOURCES += ../shared/comm/uart.c
81librtemsbsp_a_SOURCES += ../shared/comm/tty_drv.c
82librtemsbsp_a_SOURCES += ../shared/realmode_int/realmode_int.c
83librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c
84librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/console_select.c
85librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/console_control.c
86librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/conscfg.c
87librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/printk_support.c
88librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/exar17d15x.c
89librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/rtd316.c
90librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/uart_bus_pci.c
91librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/gdb_select.c
92
93# gdb
94librtemsbsp_a_SOURCES += ../shared/comm/i386-stub.c
95librtemsbsp_a_SOURCES += ../shared/comm/i386-stub-glue.c
96librtemsbsp_a_SOURCES += ../shared/comm/gdb_glue.c
97
98# gnat
99
100# pci
101librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/pci/pcibios.c
102librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/pci/pci_io.c
103librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/pci/pci_bus_count.c
104librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/pci/pci_find_device.c
105
106# startup
107librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/bsp_fatal_halt.c
108librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/bspgetworkarea.c
109librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/bspidle.S
110librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/bspstart.c
111librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/bspcmdline.c
112librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
113librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/bspreset.c
114librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/irq/idt.c
115librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/irq/irq.c
116librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/irq/irq_init.c
117librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/irq/elcr.c
118librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
119librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
120librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/ldsegs.S
121librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/irq/irq_asm.S
122librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c
123
124# timer
125librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/btimer/btimer.c
126librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/btimer/timerisr.S
127
128if HAS_IDE
129# ide
130librtemsbsp_a_SOURCES += ide/ide.c
131librtemsbsp_a_SOURCES += ide/idecfg.c
132endif
133
134if HAS_SMP
135librtemsbsp_a_SOURCES += ../shared/smp/getcpuid.c
136librtemsbsp_a_SOURCES += ../shared/smp/smp-imps.c
137
138project_lib_DATA += appstart.$(OBJEXT)
139appcpustart.$(OBJEXT): ../../../../../../bsps/i386/pc386/start/start16.S
140        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DSMP_SECONDARY_CORE -o $@ -c $<
141
142appstart.$(OBJEXT): appcpustart.$(OBJEXT)
143        $(LD) -r -N -T $(top_srcdir)/../../../../../../bsps/i386/pc386/start/linkcmds \
144            -Ttext 0x70000 -e app_processor_start -nostdlib \
145            -o appstart_tmp.exe $<
146        $(OBJCOPY) -O binary appstart_tmp.exe appstart.bin
147        $(OBJCOPY) -I binary -O elf32-i386 -B i386 appstart.bin $@
148endif
149
150if HAS_NETWORKING
151librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/net/3c509.c
152librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/net/elink.c
153librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/net/ne2000.c
154librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/net/wd8003.c
155endif
156
157librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/cache/cache.c
158librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/cpuModel.S
159librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/displayCpu.c
160librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/idtr.S
161librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/page.c
162
163if HAS_SMP
164librtemsbsp_a_LIBADD = appstart.$(OBJEXT)
165endif
166
167
168include $(top_srcdir)/../../../../automake/local.am
169include $(srcdir)/../../../../../../bsps/shared/irq-sources.am
170include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
171include $(top_srcdir)/../../../../automake/subdirs.am
172include $(srcdir)/../../../../../../bsps/i386/pc386/headers.am
Note: See TracBrowser for help on using the repository browser.