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

Last change on this file since b43ea9f was b43ea9f, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 5, 2018 at 3:07:20 PM

bsps: Move legacy console driver to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

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