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

Last change on this file since 9b7c456 was 9b7c456, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 5, 2018 at 4:40:02 AM

bsps: Move generic IRQ support to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

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